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

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

From: John Colby <john@colby.evesham.net>
Date: Fri, 18 Apr 2003 16:29:54 +0100
Message-Id: <>
To: www-validator@w3.org

Quoting Liam's mail

"The ending tag for p is optional (except in XHTML) and is implied by the
following start-tag for p (or table, h1, div, etc.)."

And you have a table enclosed within <p> . . . </p> tags (within a cell of 
a table).

Interpreting what Liam says, when a parser finds a start tag that 
effectively terminates another tag it will count as an error the 
termination tag you have written wherever it is, which is what is happening 
at the end of your table within a table. In this case, the paragraph tags 
are redundant and should both be removed. In my browsers it looks exactly 
the same. Do that, and it validates.


John Colby

Lecturer, School of Computing, Faculty of Computing, Information and English
F328a Feeney Building,  University of Central England, Franchise Street
Perry Barr, Birmingham B42 2SU phone +44 (0)121 331 6937
Received on Friday, 18 April 2003 11:30:06 UTC

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