WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: help with complex table

for

From: Beranek, Nicholas
Date: Sep 28, 2017 10:24AM


Have you considered having the College Courses in a separate 2-way data table? "College Course" and "Credits" can be column headers in that case with each of the courses as row headers.

Another option I've considered is including what I just mentioned in the same table. Here is example code:

<tr>
<th scope="col">College Course</th>
<th scope="col">Credits</th>
</tr>
<tr>
<th scope="row">ACCT 110</th>
<td>5</td>
</tr>

The beauty of this technique is that is does not require the "headers" attribute or unique IDs for each header. Try it out!

Nick Beranek
Capital One