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

RE: how to use thead and tbody

From: Al Gilman <asgilman@iamdigex.net>
Date: Wed, 12 Sep 2001 11:59:21 -0400
Message-Id: <200109121535.LAA10048558@smtp2.mail.iamworld.net>
To: "Jon Hanna" <jon@spinsol.com>, "wai-ig list" <w3c-wai-ig@w3.org>
At 11:14 AM 2001-09-12 , Jon Hanna wrote:
>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:
>  <thead>
>    <tr>
>    ..various "header" cells, often these will be <th>
>    </tr>
>    ...more rows if necessary.
>  </thead>
>  <tbody>
>    <tr>
>    ...various "body" cells, generally these will be <td>

AG:: but not totally.  Actually, in Viral's example it is arguable that it
would be better to have the left hand column be coded as THs because that is
what you need to have in mind as context to grasp what an individual rate
in the body is telling you.  But this is a) too pedantic for the assitive
technologies to have bothered with it -- they follow author usage mostly,
lead it and b) is what the assistive techniques assume anyway, that the first
row and first column spell out the coordinate axes for the rest.

>    </tr>
>    ...more rows if necessary.
>  </tbody>
>  <tfoot>
>    <tr>
>    ...various "footer" cells, generally these will be <td>

AG:: au contraire, TFOOT was invented for bottom margin headers to stay on
screen as the body data is scrolled.  So if you have a TFOOT it probably
contains things that should be classed as THs.

Google for "THEAD TFOOT" there is a page talking about scrolling that comes

>    </tr>
>    ...more rows if necessary.
>  </tfoot>
>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
Received on Wednesday, 12 September 2001 11:35:22 UTC

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