Accessible HTML tables: th, scope, caption, headers

11 steps · about 4 h · Beginner

  1. HTML Tutorial / Accessible Tables: caption, scope, and Spanning Cells (article, Coding Factory, 15 min)

    A short first lesson on the core trio of caption, th and scope, plus when merged cells hurt readability.

  2. Beginner's guide to accessible tables (article, Pope Tech, 15 min)

    Explains the difference between data tables and layout tables, and shows how to fix a table that lacks headers.

  3. Tables for Data in HTML (guide, Accessibility at Penn State, 15 min)

    Shows how a screen reader announces cells once th and scope are set.

  4. Structuring content with HTML - Learn web development (doc, MDN, 30 min)

    Its table basics article and planet data table challenge give you hands-on practice building a table from scratch.

  5. HTML table accessibility (tutorial, MDN, 40 min)

    Adds captions, thead/tbody/tfoot and scoping, with exercises you can do in an editor.

  6. Tables Tutorial (tutorial, W3C WAI, 25 min)

    The official overview of the four table types and when each needs scope, id or headers.

  7. Tables with Multi-Level Headers (tutorial, W3C WAI, 20 min)

    Teaches the id and headers technique for tables where scope alone can't describe a cell.

  8. H43: Using id and headers attributes to associate data cells with header cells in data tables (reference, W3C WCAG 2.2 Techniques, 15 min)

    The WCAG technique with the checks an auditor would run on a complex table.

  9. Accessible HTML Tables (guide, CodeHarborHub, 30 min)

    Covers sortable headers with aria-sort, scrollable wide tables and testing, which the earlier steps skip.

  10. <table>: The Table element (reference, MDN Web Docs, 20 min)

    The reference page to keep at hand once you know the patterns.

  11. 4: Tables in Developer Modules (doc, W3C WAI, 15 min)

    A final self-check of the learning outcomes, with a practical exercise on irregular tables.