Re: [VE][79] Error Message Feedback

On Sun, Jan 23, 2005 at 11:12:23PM +0100, Benjamin HINOJOSA wrote:
 
> I really don't understand why this page is not valide because the p balise
> is OPEN and CLOSED...

Under HTML 4.01 rules, the end tag on <p> elements is optional. <p>
elements can not contain <table> elements (and it wouldn't make sense
anyway, who ever heard of a paragraph containing a table of data?),
therefore the start of the <table> implies an end to the <p>. Thus
when the validator reaches the </p> there is no longer an open
paragraph to close.

> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

> <p>
> <table  width="550" cellpadding="0" cellspacing="0" align="center">
...
> </table></p>

-- 
David Dorward                                      http://dorward.me.uk

Received on Monday, 24 January 2005 10:20:43 UTC