W3C home > Mailing lists > Public > www-validator@w3.org > June 2005

Re: Validator fault message

From: David Dorward <david@dorward.me.uk>
Date: Thu, 23 Jun 2005 11:54:22 +0100
To: Peter Thal <directx7@gmx.de>
Cc: www-validator@w3.org
Message-ID: <20050623105422.GB607@us-lot.org>

On Thu, Jun 23, 2005 at 08:58:57AM +0200, Peter Thal wrote:

> I put a <ul> list in a <p> paragraph.
> Everytime i've done this igot this fault message.

<!ELEMENT P - O (%inline;)*            -- paragraph -->
    -- http://www.w3.org/TR/html4/struct/text.html#edef-P

P elements can contain things which are "inline"

<!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; | %formctrl;">
    -- http://www.w3.org/TR/html4/sgml/dtd.html#inline

inline things are %fontstyle, %phrase, %special, or %formctrl

You can keep following the links until you get down through all the
elements listed, but <ul> is not among them. It is a block level
element can cannot be contained inside a paragraph. (And as the end
tag of <p> is optional, opening a <ul> implies a close of the
paragraph, so when you hit the </p> there is no longer an open
paragraph for it to match to).

(Responses to the list please, not directly to me)

-- 
David Dorward                                      http://dorward.me.uk
Received on Thursday, 23 June 2005 10:54:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:19 GMT