Accessibility · Lists and tables

Table caption same as summary

A table on this page has a caption and a summary attribute with the same text, so screen readers read the same description twice.

How this page is built

The table below has <caption>Opening hours</caption> and summary="Opening hours".

Opening hours
DayOpens
Monday9am

Why it matters

A caption names a table, and the old summary attribute was meant to describe how it is organised. When both say the same thing, users hear it twice. The summary attribute is also obsolete in HTML.

Accessibility problems matter for search too. Search engines read the same code that screen readers read. Many crawl tools now run accessibility checks next to their SEO checks. A page that works for everyone is easier to use, and people stay on it for longer.

How to check it

Run an automated checker such as axe DevTools, Lighthouse or WAVE, or a crawler with accessibility checks, on this page. axe reports this under the rule table-duplicate-name.

How to fix it

Remove the summary attribute. If the table needs an explanation, put it in the caption or in a paragraph linked with aria-describedby.

Back to all tests