Tables · WCAG 2.0 Level A
Table cell headers attributes must refer to other <th> elements in the same table
Ensure that each cell in a table that uses the headers attribute refers only to other <th> elements in that table.
What it means
The td-headers-attr rule flags elements that fail this check. It maps to WCAG success criterion 1.3.1.
Who it affects
Screen reader users who move through tables cell by cell.
How to fix it
A headers attribute on a cell must only reference header cells in the same table.
<th id="price">Price</th> … <td headers="price">$29</td>
Check it on your site
Run a free scan. If this rule fails, the results list the affected elements. Deque, which maintains axe-core, also documents this rule in detail: Deque University: td-headers-attr.
Quick answers
What does the axe rule "td-headers-attr" check?
Ensure that each cell in a table that uses the headers attribute refers only to other <th> elements in that table.
How do I fix "Table cell headers attributes must refer to other <th> elements in the same table"?
A headers attribute on a cell must only reference header cells in the same table.
Who is affected by td-headers-attr failures?
Screen reader users who move through tables cell by cell.
Automated accessibility scan. Results are informational and may not identify every accessibility issue. This service is not legal advice, a compliance certification, or a substitute for comprehensive manual accessibility testing.