Re: @headers on th too or just td?

I discussed the issue of @headers on th elements with Gez lemon:

he came up with some info on the topic:

http://www.w3.org/TR/html401/struct/tables.html#h-11.2.6

In the DTD fragment, they have the following comment:

<!-- TH is for headers, TD for data, but for cells acting as both use TD -->

And then down in the associating header information with data cells:
http://www.w3.org/TR/html401/struct/tables.html#h-11.4.1

They have:
"Note that it's not always possible to make a clean division of cells
into headers or data. You should use the TD element for such cells
together with the id or scope attributes as appropriate."

Considering that, it's a bit strange that they allow the headers
attribute on th elements. Having a header implies that the cell
contains data, in which case it should be marked up with td. That's
probably why HTML5 have removed it from there, as it wouldn't make
sense.

-- 
with regards

Steve Faulkner
Technical Director - TPG Europe
Director - Web Accessibility Tools Consortium

www.paciellogroup.com | www.wat-c.org
Web Accessibility Toolbar -
http://www.paciellogroup.com/resources/wat-ie-about.html

Received on Friday, 27 June 2008 10:00:46 UTC