WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Joining Column Headers with Columns

for

From: Paul Bohman
Date: Oct 18, 2001 2:35PM


Yes, you can associate table headers with cells of different columns. You would have to do something like this:

<table>
<tr>
<th id="header1">One</th>
<th id="header2">Two</th>
</tr>
<tr>
<td headers="header2">Cell one</td>
<td headers="header1">Cell two</td>
</tr>
</table>

The above table would be a bit strange, because the headers are associated diagonally. The cell under the first header is actually associated with the second header. Is this a good thing. Almost always the answer is NO, it is not. Perhaps you have some special circumstance that would make this a good idea. I'd have to see an example to know for sure.

Your description of your project is vague enough that I'm not sure how else to answer at this point.
Paul Bohman
Technology Coordinator
WebAIM (Web Accessibility in Mind)
www.webaim.org
Utah State University
www.usu.edu