Accessibility · Lists and tables

Headers attribute points outside table

A cell in one table on this page uses the headers attribute to point at a header in a different table, which is not allowed.

How this page is built

The cell holding £2 in the second table has headers="plan-price", which is the ID of a header in the first table.

Plan prices
Price
£5
Add-on prices
Add-onCost
Extra storage£2

Why it matters

The headers attribute links a data cell to its header cells by ID. Those headers must be in the same table. Pointing outside it breaks the link, so screen readers read the cell without a header, or with the wrong one.

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 td-headers-attr.

How to fix it

Point headers only at <th> IDs in the same table, or use scope on the header cells instead.

Back to all tests