Recommended practice Priority: Minor
A table's caption and summary repeat the same text
A table has the same text in its <caption> and in its summary attribute, so screen readers may read it twice. This is a recommended practice beyond the WCAG 2.2 AA level.
This text was translated automatically and has not been reviewed by a native speaker yet.
Why it matters to your customers
Screen reader users hear the same table title twice before the content, for example on a size chart or shipping table. It is a minor annoyance, but repeated text makes the page feel cluttered and slower to use.
Who is affected
- screen reader users
How to fix it
Keep the visible title in <caption>. Remove the summary attribute, which is obsolete in HTML5. If a complex table needs an explanation of its structure, put it in the caption or in text next to the table, not as a copy of the title.
On Shopify
Usually from tables pasted into product descriptions or pages, or from a size chart app. Remove the summary attribute in the editor's code view or ask the app developer.
On Shoptet (CZ)
Usually in product descriptions or page texts. Remove the summary attribute in the editor's source view.
On PrestaShop
Usually in product descriptions or module templates. Remove summary from the HTML, or override the module template in the theme.
On WooCommerce
Usually from a table plugin or HTML pasted into a description. Remove summary in the table HTML, or in the plugin's settings if it offers one.
Fix it with AI
Copy this prompt into ChatGPT, Claude or Copilot and add the HTML of the element. Check the answer before you publish it.
You are an experienced web developer and accessibility specialist. Fix this accessibility problem on my website so that it meets WCAG 2.2 level AA. Website: [https://…] ## Problem: A table's caption and summary repeat the same text A table has the same text in its <caption> and in its summary attribute, so screen readers may read it twice. This is a recommended practice beyond the WCAG 2.2 AA level. **How to fix:** Keep the visible title in <caption>. Remove the summary attribute, which is obsolete in HTML5. If a complex table needs an explanation of its structure, put it in the caption or in text next to the table, not as a copy of the title. ## Elements found by the automated check [Paste the HTML of the element here, or the selector from the Pandus report] ## Requirements - Change only what is needed; keep the design and how the site works. - Do not add accessibility overlays or widgets; fix the code or the content. - Show the corrected code and say in which template or file it goes. - Explain how to check the fix with the keyboard and a screen reader.
Standards
Not a WCAG success criterion: a recommended practice that makes the site easier to use.
Automated check: axe-core rule table-duplicate-name.
dequeuniversity.com, github.com, www.w3.org
Read next
Guides and tools
Help articles
-
How to read a report and what to fix first
What each part of the report means and how to turn it into a to-do list for your developer.