W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2001

RE: how to use thead and tbody

From: Jon Hanna <jon@spinsol.com>
Date: Wed, 12 Sep 2001 16:14:43 +0100
To: "wai-ig list" <w3c-wai-ig@w3.org>
Hash: SHA1

> I am using Tables in my page and as far as I know I have written
> correct HTML Code, still InFocus says "thead and tbody not used
> properly". Anybody has an exmaple page or code using thead and
> tbody?

In general:

    ..various "header" cells, often these will be <th>
    ...more rows if necessary.
    ...various "body" cells, generally these will be <td>
    ...more rows if necessary.
    ...various "footer" cells, generally these will be <td>
    ...more rows if necessary.

Where any of those three can be absent and there can be more than one

When thead, tbody and tfoot were introduced (I think with HTML3.2) it
was decided that <tbody> should be assumed, so:

should be considered the same as:

In other words your table has a tbody element even though there is no
tbody tag.

With XHTML1.0 there had to be a choice with elements for which the
tag could be left out to either enforce their presence (as was done
with <html>, <head> and <body> which strictly speaking could be left
out before), or to allow them in the DTD. (leaving out <tbody> is now
allowed by that spec).
However it is still considered better to include the element at all

Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>

Received on Wednesday, 12 September 2001 11:12:05 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:14 UTC