Test Group 9: Data Tables

Markup and Rules for Data Tables
Test
Number
Test Description Rules Pass Nodes Fail Nodes Markup
51 First Cell In Column and Row is a TH element 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 Yes None
  • CAPTION (HTML 4.0)
  • TABLE (HTML 4.0)
  • TD (HTML 4.0)
  • TH (HTML 4.0)
  • TR (HTML 4.0)
52 Data Table does not use TH elements 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 None Yes
  • CAPTION (HTML 4.0)
  • TABLE (HTML 4.0)
  • TD (HTML 4.0)
  • TR (HTML 4.0)
53 Data Table Has Non-Empty Summary Element DTABLE-2: Each data table must have a nonempty summary attribute. Yes None
  • CAPTION (HTML 4.0)
  • TABLE (HTML 4.0)
  • TD (HTML 4.0)
  • TH (HTML 4.0)
  • TR (HTML 4.0)
54 Data Table Has Empty or Missing Summary Element DTABLE-2: Each data table must have a nonempty summary attribute. None Yes
  • CAPTION (HTML 4.0)
  • TABLE (HTML 4.0)
  • TD (HTML 4.0)
  • TH (HTML 4.0)
  • TR (HTML 4.0)
55 TH Elements Have Unique IDs 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. Yes None
  • CAPTION (HTML 4.0)
  • TABLE (HTML 4.0)
  • TD (HTML 4.0)
  • TH (HTML 4.0)
  • TR (HTML 4.0)
56 TH Elements Have Non-Unique IDs 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. Yes Yes
  • TBODY (HTML 4.0)
  • CAPTION (HTML 4.0)
  • TABLE (HTML 4.0)
  • TD (HTML 4.0)
  • TH (HTML 4.0)
  • TR (HTML 4.0)
57 TD Elements Have HEADERS Attribute DTABLE-4: Each td element in a complex data table must have a headers attribute that references the id attributes of associated th elements. Yes None
  • CAPTION (HTML 4.0)
  • TABLE (HTML 4.0)
  • TD (HTML 4.0)
  • TH (HTML 4.0)
  • TR (HTML 4.0)
58 TD Elements Have Missing or Improper HEADERS Attribute DTABLE-4: Each td element in a complex data table must have a headers attribute that references the id attributes of associated th elements. Yes Yes
  • CAPTION (HTML 4.0)
  • TABLE (HTML 4.0)
  • TD (HTML 4.0)
  • TH (HTML 4.0)
  • TR (HTML 4.0)
59 SUMMARY Attribute Is Unique DTABLE-5: The summary attribute value for each data table on a page should be unique. Yes None
  • TABLE (HTML 4.0)
  • TD (HTML 4.0)
  • TH (HTML 4.0)
  • TR (HTML 4.0)
60 SUMMARY Attribute Is Not Unique DTABLE-5: The summary attribute value for each data table on a page should be unique. None Yes
  • CAPTION (HTML 4.0)
  • TABLE (HTML 4.0)
  • TD (HTML 4.0)
  • TH (HTML 4.0)
  • TR (HTML 4.0)