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

Re: [VE][79] Error Message Feedback

From: Lachlan Hunt <lachlan.hunt@iinet.net.au>
Date: Sun, 13 Feb 2005 22:48:16 +1100
Message-ID: <420F3E80.5040102@iinet.net.au>
To: gabmeyer <gabmeyer@westweb.at>
CC: www-validator@w3.org

gabmeyer wrote:
> Line 59, column 8: end tag for element "P" which is not open
>      <p style="position:absolute;">
>         ...
>         <div style="...">...</div>
>         ...
>      </p>

The problem is that <p> elements cannot contain other block level 
elements, such as <div>, it can only contain inline elements.  Because 
of that, and the fact that the end tag for the p element is optional in 
HTML, the presence of the div element implicitly closes the p element. 
If you use the extended interface and select to show the parse tree, you 
will see this effect more clearly.

BTW, have you considered moving the contents of all those style 
attributes to an external stylesheet in order to better seperate the 
presentation from the structure and content.

Lachlan Hunt
http://GetFirefox.com/    Rediscover the Web
http://SpreadFirefox.com/   Igniting the Web
Received on Sunday, 13 February 2005 11:48:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:44 UTC