Skip to content
easeweb
Search topics

Tables with a title but no caption

Each table's title is a paragraph above it or a row inside it, not a caption, so a screen reader that jumps to the table hears no name for it.

WCAG 2.2
SC 1.3.1A
Required by
Section 508 · EN 301 549 (EU)
Broken <p class="table-title">
The accessibility problem illustrated: No vision:Standard or express?
01

The problem

Screen reader users who jump from table to table hear no title, so they can't tell which table they are in

02

Try it

Press Tab to jump from table to table

  • Broken 1: each Tab stands in for a screen reader’s key for the next table (T in NVDA and JAWS). The panel shows what it says as it arrives. Can you tell which table you are in?

  • Broken 2: the title is the table’s first row. Tab to each table, and count the rows the panel gives.

  • Apply a fix. Tab from table to table again. Can you tell which table you are in?

Broken Can you fix this?

Standard delivery

WeightPrice
Up to 1 kg$4
1 to 5 kg$7

Express delivery

WeightPrice
Up to 1 kg$9
1 to 5 kg$15

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Make each table's visible title its name

Before

The title in a paragraph above the table

<p class="table-title">Express delivery</p><table class="rates">  <thead>    <tr>      <th scope="col">Weight</th>      <th scope="col">Price</th>    </tr>  </thead>  <tbody>    <tr>      <th scope="row">Up to 1 kg</th>      <td>$9</td>    </tr>    <tr>      <th scope="row">1 to 5 kg</th>      <td>$15</td>    </tr>  </tbody></table>
What is wrong2 points

The headers are right. The title is where it fails.

  • Jumping to the table, a screen reader says only "Table, 2 columns, 3 rows", with nothing that tells it from the standard delivery table above it.
  • The title doesn't name the table: "Express delivery" is a separate paragraph, and nothing ties it to the table.
After

A caption

<table class="rates">  <caption>Express delivery</caption>  <thead>    <tr>      <th scope="col">Weight</th>      <th scope="col">Price</th>    </tr>  </thead>  <tbody>    <tr>      <th scope="row">Up to 1 kg</th>      <td>$9</td>    </tr>    <tr>      <th scope="row">1 to 5 kg</th>      <td>$15</td>    </tr>  </tbody></table>
How it is fixed3 steps
  1. Make the title the table's caption, its first child. The caption is the table's name: a screen reader announces "Express delivery, table, 2 columns, 3 rows" as it arrives, and lists the table by that name.
  2. Remove the paragraph, or the title row.
  3. Browsers centre a caption by default, so set it back to the start with one rule, keeping the bold title as it was drawn. The page looks the same as before.

This fixes both Befores and passes 1.3.1.

Why this fix: Use native HTML first

04

Verify the fix

5 checks, no mouse.

Test with: Screen reader, Keyboard, Zoom

0 of 5 checked

Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat after the table component changes.

Limits

This is a starting pattern, not a guarantee for every table. Screen readers differ in when they read a caption and how they word a table's size, and not all of them list tables. A name only helps when it says what is in the table: two tables captioned "Prices" are as hard to tell apart as two with no caption.

This is a recreated teaching example, not a finding about a named client. The code is a starting pattern: test it in your own product. No completed assistive-technology test is claimed here.

EaseWeb service

Fixed it? Keep it from coming back.

I turn guides like this one into rules your coding agents follow and checks your CI runs. Then I retest by hand with a keyboard and screen readers, periodically.

See the service