Table headers must describe at least one data cell
Every header cell in a data table should describe at least one data cell. Headers that label nothing make screen readers announce a table structure that does not match the content.
| Rule ID | th-has-data-cells |
|---|---|
| Impact | Serious |
| Success criterion | 1.3.1 Info and Relationships · A |
| Standards | WCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549 |
| Needs a change in the website’s code |
Example
<table>
<tr><th>Product</th><th>Stock</th><th>Discount</th></tr>
<tr><td>Desk lamp</td><td>14</td></tr>
<tr><td>Floor lamp</td><td>3</td></tr>
</table>A screen reader announces three columns, but the “Discount” column contains no data.
<table>
<tr><th>Product</th><th>Stock</th></tr>
<tr><td>Desk lamp</td><td>14</td></tr>
<tr><td>Floor lamp</td><td>3</td></tr>
</table>A screen reader announces two columns, and each header has values below it.
Why it matters
Screen reader users learn a table's shape before they explore it: the screen reader announces how many rows and columns it has and reads the headers. They rely on that outline to decide where to move. A header with nothing under it, or nothing to its right, breaks the outline. Users hunt for data that does not exist, or start doubting which header belongs to which value.
The problem often comes from a template that prints all column headings while some rows leave cells out, or from a <th> used as a section title inside the table. Both make the table harder to use with screen readers and braille displays, and they can also confuse people with cognitive disabilities who rely on a clear, regular grid.
How to fix it
Find out why the header has no data, then fix the table to match.
Column that is never filled. Remove the header, or fill every row with a value. Use a clear value such as “None” or “–” rather than leaving the cell out:
<tr><td>Desk lamp</td><td>14</td><td>None</td></tr>
Rows with missing cells. Every row needs a cell for each column. Add empty <td></td> cells where data is missing, so values line up with the right headers.
<th> used as a section title. If a heading row splits the table into groups, mark it as a group header that spans the row, with real data below it:
<tr><th colspan="2" scope="colgroup">Lighting</th></tr>
If it is just a title, move it to a <caption> or a heading outside the table.
Layout table. Tables used only for positioning should not contain <th> cells. Rebuild them with CSS, or add role="presentation".
Headers linked with ids. If data cells reference the header through headers or aria-labelledby, check that the ids match.
Checklist
- Give every column and row header at least one data cell.
- Keep the same number of cells in every row.
- Move table titles into a caption.
- Remove th cells from layout tables.
How the check works
The check looks at tables it identifies as data tables. For each non-empty header cell, it looks for a data cell below it (column header) or to its right (row header) that uses it as a header, or a cell referencing its id through headers or aria-labelledby. When none is found, the header is flagged for manual review rather than failed, because empty data can be intentional.
Resources
- Understanding 1.3.1 Info and Relationships W3C
- W3C ACT rule d0f69e W3C ACT
- Tables tutorial W3C WAI
Updated October 27, 2026