Data cells in large tables must have a table header
In a data table of at least three rows and three columns, every non-empty data cell needs a row or column header, so its meaning is clear. This check is experimental.
Experimental
| Rule ID | td-has-header |
|---|---|
| Impact | Critical |
| 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><td>Room</td><td>Sleeps</td><td>Per night</td></tr>
<tr><td>Standard</td><td>2</td><td>€95</td></tr>
<tr><td>Family</td><td>4</td><td>€140</td></tr>
</table>On “4”, a screen reader announces just “4”, with no hint that it means guests or rooms.
<table>
<tr><th scope="col">Room</th><th scope="col">Sleeps</th><th scope="col">Per night</th></tr>
<tr><th scope="row">Standard</th><td>2</td><td>€95</td></tr>
<tr><th scope="row">Family</th><td>4</td><td>€140</td></tr>
</table>A screen reader announces “Family, Sleeps, 4”, so the number makes sense.
Why it matters
Sighted visitors glance up and to the left to see what a number in a table means. Blind visitors using a screen reader cannot. Their screen reader reads out the headers linked to each cell, and if no headers exist, it reads bare values: “4”, “€140”, “Yes”.
In a small table that may still be manageable. In a larger one, such as a booking grid, a sports league table or a price comparison, users have to remember the order of columns and count cells to make sense of anything. Many give up. People using braille displays or screen magnification at high zoom face the same problem, because they see only a few cells at a time.
Cells styled to look like headers do not help: the screen reader only knows about real <th> elements or header roles.
How to fix it
Mark up the cells that describe other cells as headers.
Simple table with a header row. Change the first row's cells to <th scope="col">. Wrap the row in <thead> if you like:
<thead>
<tr><th scope="col">Team</th><th scope="col">Played</th><th scope="col">Points</th></tr>
</thead>
Rows named by their first cell. Make that cell a <th scope="row">:
<tr><th scope="row">Arsenal</th><td>12</td><td>27</td></tr>
Complex table with merged or multi-level headers. Give each header an id and list the relevant ids in each data cell's headers attribute:
<th id="q1">Q1</th> <th id="north">North</th>
<td headers="q1 north">€48,000</td>
Header cell left empty. Fill it with text. If it must look empty, add visually hidden text so the header still has a name.
Table used only for layout. It is not a data table. Rebuild it with CSS, or add role="presentation".
Use your browser's accessibility inspector to confirm each cell lists the headers you expect.
Checklist
- Use th for every cell that labels a row or column.
- Add scope="col" or scope="row" to simple headers.
- Use id and headers for multi-level tables.
- Make sure no header cell is empty.
How the check works
The check looks at tables it identifies as data tables with at least three rows and three columns. Each non-empty data cell must have at least one non-empty header, found through its row and column position, scope, or the headers attribute. Cells named with aria-label or aria-labelledby are skipped. The check is experimental; confirm by hand that the headers found are the right ones.
Resources
- Understanding 1.3.1 Info and Relationships W3C
- Tables tutorial W3C WAI
- Tables with multi-level headers W3C WAI
Updated October 27, 2026