W3C home > Mailing lists > Public > www-validator@w3.org > April 2003

Re: I think I've found a file that fails & shouldn't

From: David Bryant <davidbryant@att.net>
Date: Fri, 18 Apr 2003 08:19:50 -0600
Message-ID: <3EA00986.3030303@att.net>
To: David Thielen <dave@windward.net>
CC: Olivier Thereaux <ot@w3.org>, Liam Quinn <liam@htmlhelp.com>, www-validator@w3.org

David Thielen wrote:

>But in the file I sent it's not that. It's <p><p><p>.....</p></p></p>
>
>- dave
>
>  
>
So your code gets altered (because of the implied
end of paragraph rule) to

<p></p><p></p><p> ... </p></p></p>

which has two unmatched </p> tags in it. This happens
automatically when html parsing software reads your
code.

The lesson? Don't embed paragraphs within other
paragraphs. There's no reason to do it, and it's a violation
of html syntax rules.  dcb
Received on Friday, 18 April 2003 10:22:42 GMT

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