Make Complex Data Tables Accessible
8 steps · about 3 h · Intermediate
- Plan an understandable table structure (guide, W3C Web Accessibility Initiative, 20 min)
Keep relationships simple, use native markup and provide the context people need before entering the table.
- Associate a single header row or column (guide, W3C Web Accessibility Initiative, 20 min)
Mark basic row and column headers with th so assistive technology can announce context.
- Handle row and column headers together (guide, W3C Web Accessibility Initiative, 20 min)
Use scope to expose both dimensions of a straightforward data table.
- Mark up irregular header patterns (guide, W3C Web Accessibility Initiative, 25 min)
Assign explicit header identifiers when scope alone cannot express the relationships.
- Connect multi-level headers (guide, W3C Web Accessibility Initiative, 30 min)
Represent grouped columns and nested headings without losing cell context.
- Add captions and concise explanations (guide, W3C Web Accessibility Initiative, 20 min)
Give the table a clear name and describe structural complexity outside the data cells.
- Review th, scope, headers and abbr (reference, MDN Web Docs, 20 min)
Use native header attributes accurately and avoid unnecessary ARIA replacements.
- Know when an interactive ARIA table is needed (reference, W3C Web Accessibility Initiative, 25 min)
Distinguish a static HTML data table from an application table whose cells require keyboard interaction.