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:

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