E-mail List Archives

RE: Can I use TDs with IDs and headers, instead of TH

for

From: Rachel
Date: Mar 12, 2003 7:39PM


Thanks for all your feedback on TH and headers.

I noticed this on W3C:

TH is for headers, TD for data, but for cells acting
as both use TD

http://www.w3.org/TR/html401/struct/tables.html#edef-TD

So sounds like the concensus is, use TH where
something is purely a heading and use TD where
something is functioning both as a heading and as
data. And you can use the header attribute in both
tags.

Another question:
Can you have a header AND an ID both in one TD tag? In
other words, can you say that a TD tag is serving as a
heading (ID attribute) for other data cells, but its
own data also belongs under a heading somewhere else
in the table (header attribute)?

Example:
<td id="title" headers="stories">MyTitle</td><td
headers="title g7 k9">Sept 23</td> ...

Thanks again,
Rachel Sengers

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com


----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/