Skip to main content
Components

Data Table

Unicorn
Unicorn

Compliance Statement

Level AA compliance can be achieved using the Data Table component, see Restrictions for more information.

Restrictions

MUST:

  • Data table MUST have a caption defined, while it not a required component field it is needed to meet 2.1 AA.

SHOULD:

  •  
  •  
  •  

SHOULD NOT:

  •  
  •  
  •  

Notes:

  • tables with header row/column labels aren't reading both titles for cells in the middle of the table.

Table with Column/Row Labels ⚠

The table column labels are appropriately associated with the cells below, however the row labels are not associated with the intersecting cell. (ex. Available Items | Forks, Quantity | 12, Quality | Good instead of Available Items | Forks, Quantity | Forks | 12, Quality | Forks | Good)

Column Label | Row Label | Cell Value

Utensils Inventory
Available Items Quantity Quality
Forks 12 Good
Spoons 3 Excellent
Knives 15 Poor

 

Column label rotation doesn't impact cell association.

Utensils Inventory
Available Items Quantity Quality
Forks 12 Good
Spoons 3 Excellent
Knives 15 Poor

Table with Column Label

The table column labels are appropriately associated with the cells below. (ex. Sunday | Closed, Monday | Open 8:00-5:00, etc.)

Hours of Operation
Sunday Monday Tuesday Wednesday Thursday Friday Saturday
Closed Open 8:00-5:00 Open 8:00-5:00 Open 8:00-5:00 Open 8:00-5:00 Open 8:00-2:00 Closed
Appointments Only




Appointments Only

Table with Row Label

Because this table's reading order is left to right the label association isn't required.

Hours of Operation
Sunday Closed Appointments Only
Monday Open 8:00-5:00
Tuesday Open 8:00-5:00
Wednesday Open 8:00-5:00
Thursday Open 8:00-5:00
Friday Open 8:00-2:00
Saturday Closed Appointments Only

Table without Column/Row Labels

Because this table has no column or row semantic markup, it is considered a layout (visual presentation) table.

Presentation Only
Top Left











Middle Center Left Mid Center Right











Bottom Right
MENU CLOSE