W3C home > Mailing lists > Public > www-validator@w3.org > August 2004

Re: [VE][79] Error Message Feedback

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Tue, 3 Aug 2004 01:25:42 +0300 (EEST)
To: www-validator@w3.org
Message-ID: <Pine.GSO.4.58.0408030123360.12058@korppi.cs.tut.fi>

On Mon, 2 Aug 2004, Matt Seitz wrote:

> Maybe I am misunderstanding the HTML standard.  In HTML 4.0.1, section 9.3.1, I
> see, "The P element represents a paragraph. It cannot contain block-level
> elements (including P itself)."

Right. And ul is a block element.

> Doesn't that mean that a
> ul tag following a p tag is illegal?

No. It does not make the ul element part of the p element. The markup
<p><ul><li></ul>
is valid. It is equivalent, by HTML 4 specifications, to
<p></p><ul><li></li></ul>

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Monday, 2 August 2004 18:25:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:08 UTC