|
You are here > Web Design > Web Accessibility > 43.2. Data Cell Labels
Data Cell Labels
If a table has two or more row or column headings, or headings that span
multiple columns, it requires additional labeling to associate the heading with the data.
In the table data cells, the headers attribute is used on the TD element to specify which
heading cell is associated with a specific data cell.
Note that the data cell containing the number 02 includes the attribute headers="c2", which relates to the heading cell with id="c2" labelled Month. Therefore, the heading for "02" is Month.
For example:
...
<TR>
<TD HEADERS="c1">Valentines</TD>
<TD HEADERS="c2">02</TD>
<TD HEADERS="c3">14</TD>
<TD HEADERS="c4">1500</TD>
</TR>
...
Text >>>
|