Ensure the <caption> Element Does Not Contain the Same Text as the Summary Attribute
Blind
Hearing
WCAG 2.2 Level A
Data table markup should never be confusing. The caption and summary table attributes should not be identical.
Why It Matters
Screen readers announce tables in a specific way. When marked up incorrectly, tables can create confusing screen reader outputs.
Fixing the Issue
Check that tables don’t have identical summary and caption text.
To ensure screen reader users can make sense of tabular data:
- Use the <caption> element for onscreen title.
- Use the summary attribute—only read by screen readers—to describe the table structure.