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

Re: Can this be right?

From: David Dorward <david@dorward.me.uk>
Date: Mon, 2 Feb 2004 13:36:40 +0000
Message-Id: <D4D137A9-5584-11D8-810F-000A957E4F00@dorward.me.uk>
Cc: www-validator@w3.org
To: codemonk <codemonk@u-sys.org>


On 1 Feb 2004, at 17:47, codemonk wrote:

> 	 1.  	Line22, column 48: end tag for element "P" which is not open 
> (explain...).
> 	 2.  	    <p><pre class="code">/*
> no comment */</pre></p>

In HTML 4, end tags are optional for <p> elements, and <pre> elements 
are not allowed inside paragraphs.

Hence: <p><pre></pre></p> is the same as <p></p><pre></pre></p> and the 
</p> doesn't have an open paragraph again.

--
David Dorward
http://dorward.me.uk/
Received on Monday, 2 February 2004 08:37:14 GMT

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