Resonance Logo

Table

A table displays structured data in rows and columns, with properly scoped header cells so assistive technology can convey the relationship between each data cell and its headers.

Demo

Review the table below and use a screen reader to navigate it. Move cell by cell with arrow keys to hear how each data cell is announced together with its column and row header. Try sorting a column if the interaction is available, and note how the sort state is communicated.

Monthly Sales Report
Month Revenue Expenses Profit Download
January $10,000 $5,000 $5,000 Download
February $12,000 $6,000 $6,000 Download

What to Observe

Anatomy

[Anatomy image placeholder — will be added when assets are available]

  1. Caption: An optional <caption> element inside the table that gives the entire table an accessible name describing its contents.
  2. Table head (thead): The section grouping all column header rows, which browsers and assistive technologies treat differently from data rows.
  3. Header cells (th): Cells that label a column or row, with a scope attribute set to col or row to define their relationship to data cells.
  4. Table body (tbody): The section containing all data rows, keeping structure semantic and parseable.
  5. Data cells (td): Individual cells containing the actual data values, associated with header cells through the table structure.
  6. Sort controls: Interactive elements within header cells that change column sort order, with aria-sort applied to the active header to communicate current direction.

Accessibility Behavior

Common Mistakes

Why This Matters

Tables are one of the most information-dense components on the web, and screen reader users depend entirely on the semantic structure to navigate them. Without proper headers and scope attributes, a screen reader user hears a stream of values with no indication of what column or row each value belongs to. In data-heavy applications — finance dashboards, schedule grids, comparison charts — this makes the content completely unusable. Correct table markup costs no additional effort once the pattern is understood, and it ensures that every user can interpret the data presented to them.

Accessibility Validation

This component is validated against internal accessibility criteria aligned with WCAG standards, using our internally developed system, Resonance Specs.

To learn more, please contact us.

Code

Reference Implementation