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

Re: [VE][79] Error Message Feedback

From: David Dorward <david@dorward.me.uk>
Date: Mon, 24 Jan 2005 10:20:41 +0000
To: Benjamin HINOJOSA <benjamin.hinojosa@univ-lille3.fr>
Cc: "www-validator @ w3. org" <www-validator@w3.org>
Message-ID: <20050124102041.GD19598@us-lot.org>

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

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