H43 Correctly Associated Headers Attribute Test

Header A Header B
Header Ai Header Aii
Cell 1Ai Cell 1Aii Cell 1B

Explanation

According to Success Criterion 1.3.1 (Info and Relationships), the relationship between table headings and table data (ie. th and td elements) must be programmatically determinable. This can be done using either the "scope" attribute on th elements, or "headers" attributes on td elements - depending on the number and type of headings.

Because this table contains two levels of headings, the "headers" attribute method must be used, and all relevant headers should be assigned to each td element. This example demonstrates correct usage of the headers attribute.

Expected Not To Fail

Relevant Success Criteria

Relevant Techniques