Table cell headers attributes must refer to other <th> elements in the same table
How to fix the td-headers-attr accessibility rule. Tables.
What this rule checks
Ensure that each cell in a table that uses the headers attribute refers only to other <th> elements in that table
Who is affected
A table cell's headers attribute points at headers that don't exist in the table.
How to fix it
Point headers at the ids of real <th> cells in the same table.
WCAG success criteria
When this rule fails, the page fails:
- 1.3.1 Info and Relationships (Level A, WCAG 2.0, 2.1, 2.2)
Find it on your own page
Scan a web page and the report lists every element that fails this rule, with screenshots outlining where they are, the code, and a selector you can paste into your browser’s developer tools.
More detail
- Deque University’s reference for td-headers-attr (the makers of axe-core, the engine our scanner uses)
- All fix guides