| Title | Inappropriate Table Header Cells Check |
|---|---|
| id | table_08 |
| type | prop |
| elem | tableData |
| test | tableHdrNot |
| score | 3 |
| level | A |
| trust | 1 |
| ref | d0f69e |
| scs | 1.3.1 |
| dis | 43353 |
| result | failed |
The "Inappropriate Table Header Cells Check" evaluates whether there is any <th> (header cell) in a table not functionally connected to at least one <td> (data cell).
I found 1 header cell that is not associated with any data cells.
- Visual Impairments: Screen readers may announce headers with no related data, creating confusion and false expectations.
- Motor Impairments: Misuse of
<th>affects focus indicators and keyboard context. - Cognitive Disabilities: Misleading headers suggest relationships that don’t exist.
To address inappropriate table header cells:
- Locate the inappropriate
<th>element. - Ensure that it is meaningful, being the header of either a row or a column.
- Associate it to its supposed data cell (i.e.,
<td>element), or remove it if it does not apply to any data cell. - Make proper use of the
headersandscopeattributes (i.e., usescope="col"orscope="row"for simple tables andidandheadersfor complex tables).