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

Re: Possible bug in validator (Please CC responses, not on mailing list)

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Wed, 16 Nov 2005 16:37:55 +1100
Message-ID: <437AC5B3.6020009@lachy.id.au>
To: segin <segin11@yahoo.com>
CC: www-validator@w3.org

segin wrote:
> I attempted to validate my website's main page, 
> http://segin.no-ip.org/index.html, on the validator, and it keeps 
> complaining about a illegal placement of a <TABLE> tag. After 
> scanning the HTML, and passing it to friends to scan, it has been 
> deemed that there is a possible bug in the validator.

   "Nothing wrong with the validator here, it just knows HTML
    better than you [and your friends] do." -- David Dorward

<!ELEMENT TABLE - -
      (CAPTION?, (COL*|COLGROUP*), THEAD?, TFOOT?, TBODY+)>

You've used a THEAD, but an optional TFOOT and one or more TBODY 
elements is required to follow.

<table>
   <thead>
     ...
   </thead>
   <tbody>
     <!-- one or more of these elements must be present -->
     ...
   </tbody>
</table>

You could just change the thead to tbody in your case, since you're 
using the table for layout instead of marking up tabular data, but I'd 
recommend you remove the table and learn to use CSS for layout and 
presentation instead.

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Wednesday, 16 November 2005 05:38:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:20 GMT