Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Tables without headers: how to find and fix them (WCAG 2.2)

PRF-341Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

An HTML table shows data in rows and columns. Sighted visitors read the top row or first column as labels. Screen readers need those labels marked in code. The right element is th (table header cell). Without it, every cell is just td (plain data cell), and the reader announces values with no context.

This maps to WCAG 2.2 success criterion 1.3.1 Info and Relationships. It is common in pricing tables, plan comparisons, shipping rate tables and size charts. Page builders often style the first row as bold text but still use td.

Pricing table markup

Without headers

  • First row is td cells styled bold
  • Screen reader says: Basic, $19, 5 users
  • No link between a value and its column
  • No caption describing the table

With headers

  • First row uses th scope=col
  • Screen reader says: Price, $19
  • Row labels use th scope=row
  • Caption names the table

Why it costs you leads or sales

The direct impact is low for most sites, but it is real where tables carry buying information: prices, plan limits, delivery costs, sizes. A visitor who uses a screen reader cannot compare plans, so they leave or pick wrongly and later ask for a refund. It also raises legal and procurement risk if you must meet WCAG.

Where a screen reader user drops out
  1. Landing pageReads headline and offer
  2. Pricing tableCells read with no column names
  3. Choose planCannot compare confidently
  4. Checkout or formNever reached

The break is at the comparison step, so later steps are lost for this visitor.

How to check if your site has it

Find tables with no header cells
  1. Run an accessibility scanner

    Use a browser extension or audit tool such as axe DevTools or Lighthouse's accessibility audit. Look for findings about table headers or data cells without headers.

  2. Inspect the markup

    Right-click the table, choose Inspect, and look at the first row. If you see only td and no th, the table has no headers.

  3. Run a quick console check

    Paste the snippet below in the browser console to list data tables with no th.

  4. Listen with a screen reader

    Use NVDA (Windows), VoiceOver (Mac) or TalkBack. Move through a cell with the table navigation keys and check whether the column name is announced.

List tables that have no th cellsjavascript
document.querySelectorAll('table').forEach((t, i) => {
  if (!t.querySelector('th') && t.getAttribute('role') !== 'presentation') {
    console.log('Table', i + 1, 'has no header cells', t);
  }
});

How to fix it

The fix is the same everywhere: header cells become th, with scope saying whether they label a column or a row. How you get there depends on your platform.

Add header cells by platform
  1. Use the Table block

    In the block editor, select the Table block and turn on Header section in the block settings. This outputs a thead with th cells.

  2. Check table plugins

    If you use a table plugin, look for a first row as header option in its settings. The exact name depends on the plugin.

Accessible pricing tablehtml
<table>
  <caption>Plan comparison</caption>
  <thead>
    <tr>
      <th scope="col">Plan</th>
      <th scope="col">Price per month</th>
      <th scope="col">Users</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th scope="row">Basic</th>
      <td>$19</td>
      <td>5</td>
    </tr>
    <tr>
      <th scope="row">Team</th>
      <td>$49</td>
      <td>20</td>
    </tr>
  </tbody>
</table>

How to confirm it's fixed

Confirm checks
  • Inspect shows th cells in the header row
  • Row labels use th scope=row where the first column names each row
  • The table has a caption or an accessible name
  • The console snippet no longer lists the table
  • Your accessibility scanner reports no table header findings
  • A screen reader announces the column name when you move across cells

How to prevent it happening again

Habits that keep tables accessible
  • Add a table check to your content publishing checklist
  • Use the editor's header row option instead of bolding the first row
  • Do not paste tables from spreadsheets or Word without checking the markup
  • Run an accessibility scan after theme or plugin updates
  • Add an automated accessibility check to your build or QA process if you ship custom code

How FunnelGuard handles this

This is outside what FunnelGuard checks. FunnelGuard runs your real customer journeys on a schedule and checks forms, buttons, tracking hits and lead delivery. It does not inspect table markup. For this issue you need an accessibility scanner (such as axe or Lighthouse), or a manual test with a screen reader.

If you want to check the journeys that bring visitors to these pages, FunnelGuard has a Free plan (1 site, 2 journeys, daily checks, no card) and a free read-only website audit.

Questions people ask

Why do tables need header cells?

Header cells (th) tell assistive technology which label belongs to each value. Without them a screen reader reads raw cells with no context, so a number like 49 has no meaning. This is covered by WCAG 1.3.1.

How do I add a header row to an HTML table?

Wrap the first row in thead and use th elements with scope="col" instead of td. Add a caption element as the first child of the table. Row labels in the first column should use th scope="row".

What does scope="col" do on a th?

It states that the header cell labels the cells below it in the same column. Use scope="row" when the header labels the cells to its right in the same row. Screen readers use it to announce the right label.

Is making the first row bold enough?

No. Bold is only visual. Screen readers rely on the th element, so a bold row of td cells is still a table without headers.

How do I find tables without headers on my website?

Run an accessibility scanner such as axe DevTools or Lighthouse, or inspect the table and look for th in the first row. You can also use a console script to list tables with no th.

Do layout tables need headers?

No, but you should avoid layout tables and use CSS instead. If a table must stay for layout, mark it role="presentation". Any table that shows data needs headers.

Can FunnelGuard detect tables without headers?

No. FunnelGuard monitors journeys, tracking and lead delivery, not markup accessibility. Use an accessibility scanner or a screen reader test for this issue.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.