EN, Change language
Englishالعربية
OM-092

Headers must be correctly associated with data cells, using row headers where helpful.

The requirement (from the design system site)

Headers must be correctly associated with data cells, using row headers where helpful.

Why it matters to users

A screen-reader user moves through a table cell by cell, and without linked headers they hear "5 rials" with no idea which service or category it belongs to. They have to go back to the top of the table for every figure.

How to fix it

Use th for column and row headers with the right scope, use headers and id for complex tables, or use gup-table. Then scan again.

How we measure it

Each data table needs th cells (thead or first column) with scope, or headers/id for complex tables; axe td-has-header and th-has-data-cells must pass.

The rule on the design system site

Related rules

Table headers linked to cells · Oman OM-092 | xfix