Table header text should not be empty
How to fix the empty-table-header accessibility rule. Names of links, buttons and controls. A best practice, not a WCAG requirement.
The message you saw
Lighthouse has no audit for this rule, so you’ll only see it from axe-core based tools.
What it means
A table header cell (<th>, or a cell with a columnheader or rowheader role) is the label for its column or row. This message means a header cell has no visible text. axe-core checks for visible text here, so an aria-label alone doesn’t pass this rule.
It’s a best practice from axe-core, not a WCAG failure on its own. Lighthouse has no audit with this wording.
Who is affected
A table header cell has no visible text, so its column or row has no label for screen-reader users.
Screen-reader users: when they move through the table, the empty header is announced as nothing, so the cells in that column have no label. Sighted people also see an unlabelled column, for example a column of buttons or checkboxes with no heading.
How to find it
- Run the checker with “Also show best-practice suggestions” ticked; it outlines each empty header.
- Common places: the top-left corner cell of a table, a column of action buttons (Edit, Delete), a column of checkboxes, or an icon used as a header.
How to fix it
- Give the header visible text that says what the column or row holds (“Actions”, “Select”, “Status”).
- If the design really needs the header to look empty, text hidden with a visually-hidden class still helps screen-reader users, but axe-core only counts visible text, so this warning will stay. Visible text is better for everyone.
- If the cell isn’t really a header (like the empty top-left corner), make it a
<td>instead of a<th>. - If the header holds only an icon, add text next to the icon, or alt text if the icon is an image.
Example
Before
<tr><th></th><th>Name</th><th></th></tr>After
<tr><td></td><th scope="col">Name</th><th scope="col">Actions</th></tr>WCAG success criteria
None. This is a best practice: fixing it helps people using assistive technology, but it doesn’t affect WCAG conformance. Our scanner only reports it if you tick “Also show best-practice suggestions”.
Check your fix
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. Scan again after your change: when the rule no longer appears under the problems, the fix worked.
An automated pass means this rule found nothing wrong. It doesn’t prove the page is accessible: some of what WCAG asks for needs a person to check, and the report’s manual checklist lists those steps.
Related fix guides
<th>elements and elements with[role="columnheader"/"rowheader"]do not have data cells they describe- Cells in a
<table>element that use the[headers]attribute refer to an elementidnot found within the same table - Heading elements do not contain content
More detail
- Deque University’s reference for empty-table-header (the makers of axe-core, the engine our scanner uses)
- All fix guides