Tabela com células de cabeçalho, mas sem células de dados
Na Neova Roda a partir do próprio rastreamento: nada a configurar.
Regra revisada pela última vez em 17 de outubro de 2026 · Guia atualizado em 7 de julho de 2026
O WCAG 1.3.1 exige que as relações da tabela estejam disponíveis no código. Sem células de dados, os leitores de tela não têm a que ligar os cabeçalhos.
O que você pode fazer
Adicione as células de dados ou use outros elementos no lugar de th se o conteúdo não for uma tabela de dados.
Por que a Neova sinaliza isto
As células de cabeçalho rotulam as células de dados; sem td, os leitores de tela não têm a que ligar os cabeçalhos.
Costuma significar que th foi usado para layout ou estilo, ou que as linhas carregam depois por script.
O WCAG 1.3.1 (nível A) exige que as relações da tabela estejam na marcação.
A <th> that describes no data cells is a header pointing at nothing — usually a leftover from a layout table or a half-built data table. Assistive tech can’t map it to any content, so either give the header real cells to describe or drop the table markup and use CSS for layout.
What This Check Flags
This is the axe-core th-has-data-cells rule. It inspects every <th> and every element with role="columnheader" or role="rowheader" and confirms each one actually describes data cells. When a header sits in a table that has no data cells for it to point at, the check fails. It maps to WCAG 2.1 SC 1.3.1 Info and Relationships (Level A): a header announces what a column or row contains, and when there is nothing under or beside it, the header makes a promise the table never keeps — which is exactly the broken relationship the rule catches.
Data Tables vs. Layout Tables
A data table presents information where a cell’s meaning depends on its row and column — a pricing grid, a schedule, a spec sheet. Those need headers so screen readers can announce context (“Price, $49”). A layout table was the old way to position page elements before CSS did the job properly. This rule fires most often when someone built a layout table but sprinkled in <th> tags — often just to bold or centre some text — with no genuine data relationship behind them.
A Real Failing Example
Here a table has header cells but the body rows use <td> in a way that leaves one header describing nothing, plus a stray header row with no matching data:
<table>
<tr>
<th>Plan</th>
<th>Price</th>
<th>Seats</th>
</tr>
<tr>
<th>Notes</th> <!-- header with no data cells below it -->
</tr>
</table>
The “Notes” header sits alone with no row of <td> beneath it, so th-has-data-cells flags it. The fix is to make the table an honest grid where every header owns a column of data cells:
Now every header has a column of data underneath it, scope="col" makes the association explicit, and a screen reader can announce “Price, $49” as it moves across the row.
What a Screen Reader Hears
Situation
Announced to the User
Result
Header with matching data cells
“Price, column 2, $49”
Context is clear
Header pointing at no data
“Notes” — then silence
Orphaned, confusing
Layout table with stray <th>
Reads it as a data header falsely
Table mode fires for no reason
Proper layout via CSS grid
Reads content in order, no table mode
Clean and predictable
How to Detect It
Screaming Frog — run a crawl with a custom extraction (or the built-in accessibility integration if enabled) to pull <table> markup, then flag tables where a <th> count outstrips the <td> rows. Odd ratios are your candidates.
axe DevTools — run the extension and look for the th-has-data-cells violation. It points at the exact header element with no associated data cells.
Lighthouse — the Accessibility audit includes table and header checks; a failing table structure shows up in the results with the offending node.
View Source / DevTools Elements — inspect the table by hand. Count the <th> cells against the body rows. A header with no column or row of <td> behind it is the failure — and often a sign the table is really doing layout.
How to Fix It
If It’s a Real Data Table
Make sure every header has a full column (or row) of <td> data cells beneath or beside it.
Add scope="col" or scope="row" so the header-to-cell association is explicit, not guessed.
Remove any leftover header cells that describe nothing — a “spacer” or “notes” header with no data is dead weight.
If It’s Really a Layout Table
Stop using a table for layout. Rebuild the layout with CSS — flexbox or grid handles columns and alignment far better.
If ripping it out now is not realistic, at minimum change every <th> to <td> and add role="presentation" to the table so assistive tech stops treating it as data.
Common Mistakes
Bolding text with <th>. Header cells are for structure, not styling. If you just want bold or centred text, use <td> and CSS.
Leaving a stray header row. A “title” row of <th> spanning the top with no colspan and no data underneath each one trips the rule. Use a <caption> for a table title instead.
Fixing the symptom, ignoring the cause. Patching one orphaned header when the whole table is a layout hack just moves the problem. Decide first whether it is data or layout, then fix accordingly.
FAQ
Do I Need Scope on Every Header?
For a simple grid, browsers often infer the association, but adding scope="col" and scope="row" removes the guesswork and is the safest habit. For complex tables with merged cells it becomes essential. Related: scope attribute usage.
My Table Looks Fine Visually — Why Does It Fail?
Visual appearance and the accessibility tree are two different things. A header can look aligned over a column while the markup leaves it associated with no <td> at all. The rule reads the code, not the pixels.
Is This the Same as Headers Needing Discernible Text?
No — that’s a separate check about a header being empty or unreadable. This one is about a header that has text but describes no data. See ensure table headers have discernible text for the other side.
What About Headers That Reference IDs?
Complex tables can tie cells to headers with headers and id attributes. If those references break, you get a related failure. See table headers must reference valid IDs.
Does Fixing This Help SEO?
Clean, genuine data tables are easier for crawlers to parse and are the kind of structured content that can earn richer treatment in results. It also feeds the broader overlap between accessibility and SEO.
Need a full technical audit?
Neova runs deep crawls that catch issues like this across your whole site.
Encontre isso no seu próprio site
O Neova roda esta verificação e todas as outras em cada rastreamento e depois escreve a correção como um ticket para a sua equipe.
App para desktop no Mac, Windows e Linux
Todas as 696 verificações, cada uma com sua fonte
Search Console e Analytics 4, conectados só para leitura
Tickets para Jira, Linear e Asana
Baixar a NeovaPlano Desktop Free, ou Solo grátis por 14 dias, sem cartão.