The following table correctly uses unique id attributes on header cells and references them with the headers attribute in data cells.
<table>
<tr>
<th id="h-region">Region</th>
<th id="h-sales">Sales</th>
</tr>
<tr>
<td headers="h-region">North</td>
<td headers="h-sales">$10,000</td>
</tr>
</table>The following table contains complex nested headers but lacks the id and headers attributes, which leaves the relationship between data and headers hard to distinguish for screen readers.
<table>
<tr>
<th>Region</th>
<th>Sales</th>
</tr>
<tr>
<td>North</td>
<td>$10,000</td>
</tr>
</table>This section provides information on how to identify, review, and fix the failed check.
Examine the page and identify any complex tables.
To review this error check, use the Web Governance Browser Extension to identify the element on the page or in the HTML source code. Check if the table has multiple layers of headers or cells that span multiple rows or columns. If it does, verify that each header cell (<th>) has a unique id and that each related data cell (<td>) has a headers attribute that contains the corresponding IDs.
For more information, visit How to review an accessibility issue.
headers attribute.headers attribute, separated by spaces.If this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.