Header A | Header B |
---|---|
Header 1 | 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.
This table attempts (arguably) to associate the table headers to data cells using the "scope" attribute on the th elements. However, the "scope" attribute on Header A ("bogus") is not valid.
HTML_CodeSniffer expects either "row" or "col" for scope attributes. There are also "rowgroup" and "colgroup" values and these will not generate an error in itself, however it is likely that these tables have multiple levels of headers and thus should be using the "headers" attribute.