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 is missing, and thus is in error. HTML_CodeSniffer assumes that by using scope on a data table that permits it, that you want to finish the job using that attribute.