RAWEBA
5.7 For each data table, is the appropriate technique used to associate each cell with its headers (excluding special cases)?
- WCAG references
- 1.3.1 Info and Relationships (A)
- Techniques
- F90
- H43
- H63
Official methodology to test criterion 5.7
Test 1 (5.7.1)
- Find the data tables in the document.
- For each header (
<th>element) applying to the entire row or column, check that the<th>element has- either a unique
idattribute; - or a
scopeattribute; - or a WAI-ARIA
role="rowheader"or"columnheader"attribute.
- either a unique
- If this is the case for each header applying to the entire row or column, the test is validated.
Test 2 (5.7.2)
- Find the data tables in the document.
- For each header (
<th>element) applying to the whole row or column and provided with ascopeattribute, check that thescopeattribute has- either a
"row"value for row headers; - or a
"col"value for column headers.
- either a
- If this is the case for each header which applies to the entire row or column and has an
scopeattribute, the test is validated.
Test 3 (5.7.3)
- Find the data tables in the document.
- For each header (
<th>element) which does not apply to the whole row or column, check that the<th>element- has a unique
idattribute; - does not have a
scopeattribute; - does not have a WAI-ARIA
role="rowheader"or"columnheader"attribute.
- has a unique
- If this is the case for each header that does not apply to the entire row or column, the test is validated.
Test 4 (5.7.4)
- Find the data tables in the document.
- For each
<td>or<th>element associated with one or more headers with anidattribute, check that- the
<td>or<th>element has aheadersattribute; - the
headersattribute has the list ofidattribute values for the associated headers.
- the
- If this is the case for each
<td>or<th>element associated with one or more headers with anidattribute, the test is validated.
Test 5 (5.7.5)
- Find the data tables in the document.
- For each header that applies to the entire row or column and has a WAI-ARIA
role="rowheader"or"columnheader"attribute, check that the element has- either a WAI-ARIA
role="rowheader"attribute for row headers; - or a WAI-ARIA
role="columnheader"attribute for column headers.
- either a WAI-ARIA
- If this is the case for each header that applies to the entire row or column and has a WAI-ARIA
role="rowheader"or"columnheader"attribute, the test is validated.
Test 6 (5.7.6)
- Find the data tables in the document.
- For each header (
<th>element) applying to a group of rows or a group of columns and provided with ascopeattribute, check that thescopeattribute has- either a
rowgroupvalue for row header groups; - or a
colgroupvalue for column header groups.
- either a
- If this is the case for each header applying to a row group or column group and provided with a
scopeattribute, the test is validated.