Re: [VE][79] Error Message Feedback

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://lachy.id.au/
http://GetFirefox.com/    Rediscover the Web
http://SpreadFirefox.com/   Igniting the Web

Received on Sunday, 13 February 2005 11:48:22 UTC