Header A | Header B | |
---|---|---|
Header Ai | Header Aii | |
Cell 1Ai | Cell 1Aii | Cell 1B |
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. The "scope" attributes on this table are considered ambiguous, and thus this method of association is disallowed by HTML_CodeSniffer.