H39/H73.4 Table Summary/Caption Duplication Failure

Header A Header B
Header 1 Cell 1B

Explanation

According to Success Criterion 1.3.1 (Info and Relationships), providing a caption and/or summary can improve the usability of a data table in different ways. A caption element titles the table and is seen by all users. A summary attribute (on the table element) provides additional information for users requiring assistance, who may be reading the table cell-by-cell and therefore cannot immediately grasp the concept of the table's organisation as a whole.

This example demonstrates warnings that appear when a summary and/or caption do not appear in a data table. These attributes should be used to improve the accessibility of the table to all users, especially those who browse unsighted. These are provided as warnings because HTML_CodeSniffer makes an educated guess as to whether it is a data or layout table (by the presence of th elements).

Expected Warnings

Relevant Success Criteria

Relevant Techniques