Accessibility · Lists and tables
Table cell used as a caption
A table on this page uses its first row, a single cell spanning every column, as a caption instead of using a caption element.
How this page is built
The table below starts with a row holding one cell, Opening hours, that spans all three columns.
| Opening hours | ||
| Day | Opens | Closes |
|---|---|---|
| Monday | 9am | 5pm |
| Tuesday | 9am | 5pm |
Why it matters
A caption names a table for screen readers, which announce it when users reach the table. A cell that only looks like a caption is read as data and can be taken as a header for the first column, confusing the structure.
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-fake-caption.
How to fix it
Replace the first row with a <caption> element.