Data table has no header cells

  • WCAG 1.3.1 Info and Relationships, level A
  • Serious
  • Structure
  • Automated
  • Server pass

Why it matters

Screen readers announce the column and row heading as you move around a table. Without header cells, every number is read out with no context.

How to fix it

Mark the header cells with <th>, and add scope="col" or scope="row". Use tables for data only, not layout.

<table>
  <tr><th scope="col">Plan</th><th scope="col">Price</th></tr>
  <tr><td>Pro</td><td>£59</td></tr>
</table>

Read the W3C guidance: Understanding 1.3.1 Info and Relationships.

Related rules

Find this on your own site. A11yMate scans every page and lists where it happens. See pricing or browse all rules.