Simple and Complex Data Table Rules

Markup

td[headers] (HTML4)

td (HTML4)

th[scope] (HTML4)

th[id] (HTML4)

th (HTML4)

caption (HTML4)

table[summary] (HTML4)

table (HTML4)

Rules

Rules for Simple and Complex Data Table
# Testing Description Implementation
FAE Firefox
Accessibility
Extension
DTABLE.1 Pass/Fail DTABLE.1

For each data table, the first cell in each column must be a th element, and each row must contain at least one th element

Implementation Notes

  • It is recommended but not required to use the caption element for titling a data table
  • It is recommended but not required to use the scope attribute indicating whether a heading is for a column or row
1.0 1.5
DTABLE.2 Pass/Fail DTABLE.2

Each data table must have a nonempty summary attribute.

Implementation Notes

  • The intent of this rule is to help web developers become aware of using the summary attribute to describe the contents of data tables and any conclusions the author was trying to convey from including the data table in the page.
1.0 1.5
DTABLE.3 Pass/Fail DTABLE.3

Each th element in a complex data table must have ad id attribute whose value is unique relative to all ids on the page.

1.0 1.5
DTABLE.4 Pass/Fail DTABLE.4

Each td element in a complex data table must have a headers attribute that references the id attributes of associated th elements.

1.0 1.5
DTABLE.5 Pass/Warning DTABLE.5

The summary attribute value for each data table on a page should be unique.

1.0 1.5