Re: Can this be right?

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 UTC