Skip to main content
RAWEBA

5.6 For each data table, are each column header and each row header correctly declared?

WCAG references
  • 1.3.1 Info and Relationships (A)
Techniques
  • F91
  • H51

Official methodology to test criterion 5.6

Test 1 (5.6.1)

  1. Find the data tables in the document.
  2. For each column header that applies to the entire column, check that the column header is implemented using
    • either a <th> element;
    • or an element with a WAI-ARIA role="columnheader" attribute.
  3. If this is the case for each column header applying to the entire column, the test is validated.

Test 2 (5.6.2)

  1. Find the data tables in the document.
  2. For each line header that applies to the whole line, check that the line header is implemented using
    • either a <th> element;
    • or an element with a WAI-ARIA role="rowheader" attribute.
  3. If this is the case for each line header applying to the entire line, the test is validated.

Test 3 (5.6.3)

  1. Find the data tables in the document.
  2. For each header which does not apply to the entire row or column, check that the row header is implemented using a <th> element.
  3. If this is the case for each header which does not apply to the whole row or column, the test is validated.

Test 4 (5.6.4)

  1. Find the data tables in the document.
  2. For each cell associated with several headers, is it implemented using a <th> or <td> tag.
  3. If this is the case for each header that does not apply to the whole row or column, the test is validated.