Headers Attribute Check
Description
The “Headers Attribute Check” evaluates whether all headers attributes used within table cells correctly reference id attributes of other cells within the same table element.
Example outcome
I noticed that all headers attributes refer to cells in the same table.
Impact
- Visual Impairments: Screen readers rely on correct
headersattributes to read out the corresponding column/row header for each data cell. If they’re broken or point to IDs outside the table, the data loses its context, leading to confusion or misinformation. - Cognitive Disabilities: Some assistive tools provide simplified table views. If headers aren’t correctly referenced, these tools can’t reconstruct an understandable table view, causing cognitive overload.
Fixes
To address inappropriate headers attributes:
- Locate the inappropriate
headersattribute. - Ensure that the
headersattribute only references anidof an element within the same<table>. - Verify that the
idreferenced by theheadersattribute exists and is unique within the document.