A table's caption and summary must not repeat the same text

A table's `<caption>` and its old `summary` attribute should not contain the same text, because screen readers would read it twice. This is a best practice, not a WCAG requirement.

Rule IDtable-duplicate-name
ImpactMinor
Success criterion Best practice, not a WCAG requirement
Readabler fix Needs a change in the website’s code

Example

Before
<table summary="Delivery prices by region">
  <caption>Delivery prices by region</caption>
  <tr><th scope="col">Region</th><th scope="col">Price</th></tr>
  <tr><td>Europe</td><td>€6</td></tr>
</table>

A screen reader announces “Delivery prices by region” twice before the table starts.

After
<table>
  <caption>Delivery prices by region</caption>
  <tr><th scope="col">Region</th><th scope="col">Price</th></tr>
  <tr><td>Europe</td><td>€6</td></tr>
</table>

A screen reader announces the table name once, then the headers and data.

Why it matters

A caption names a table. The summary attribute was meant for something else: a short explanation of how a complex table is organised, for people who cannot see its layout. When both say the same words, screen reader users hear the title twice every time they reach the table, and they get no hint about its structure.

The repetition is a small irritation on one table. On a page with many tables, such as a product comparison or a report, it adds noise and slows down blind users who navigate from table to table.

The summary attribute is also obsolete in HTML5, and support across screen readers is uneven. Content placed there may not reach every user, so a visible description is more reliable.

How to fix it

Keep the <caption> as the table's name, and decide what the summary is for.

The summary only repeats the caption. Delete the attribute. The caption already does the job:

<table>
  <caption>Delivery prices by region</caption>
  ...
</table>

The summary explains the structure. Move that explanation into the page, where everyone can read it. Put it inside the caption, or in a paragraph linked with aria-describedby:

<p id="rates-help">Regions are listed in rows. Columns show standard and express prices.</p>
<table aria-describedby="rates-help">
  <caption>Delivery prices by region</caption>
  ...
</table>

You keep summary for older tools. Make sure it adds something the caption does not say, such as how the rows and columns are arranged. Never copy the caption into it.

If your content system adds summary automatically from the caption, change the template or plugin setting so it stops doing so.

Checklist

  1. Use caption for the table's name.
  2. Delete summary attributes that copy the caption.
  3. Move structural explanations into visible text.
  4. Check templates and plugins that generate summary.

How the check works

The check looks at every <table>. If the table has both a <caption> and a summary attribute, it compares their text, ignoring case and extra spaces. The check fails when they are identical. Tables with only one of the two pass. Whether a different summary is actually useful still needs a human judgement.

Resources

Updated October 27, 2026