Skip to main content
Module 2 · Lesson 3 of 47/60 in the course~16 min
Module lessons (3/4)

Accessible Data Tables With Caption & Scope

Lesson preview5 hands-on exercises readyModern HTML & CSS · Semantic HTML5 & Page Architecture

Structure tabular data cleanly using caption, thead, tbody, and scoped th headers.

What you'll learn in this lesson

  • Organize tabular data with semantic <table>, <caption>, <thead>, <tbody>, and <tfoot>.
  • Pair column and row headers unambiguously via <th scope="col"> and <th scope="row">.
  • Explain why <table> belongs strictly to real two-dimensional data—never page layout.

Overview

In the late 1990s, developers built sidebars and navbars out of <table> rows. Today, CSS Grid and Flexbox handle layout cleanly—leaving <table> to do what it does best: accessible 2D data relationships.

When a blind visitor focuses cell $29 / mo using table navigation shortcuts, their screen reader reads the column header and row header automatically (e.g., "Pro Tier, Monthly Price: $29 / mo"). That magic only works when you mark headers properly with <th> and scope!

Sections covered in this lesson

  1. 1Tables Are for Data Matrices, Never Visual Page Grids
Pro Lesson · Semantic HTML5 & Page Architecture

Unlock "Accessible Data Tables With Caption & Scope" and the full Modern HTML & CSS curriculum

Structure tabular data cleanly using caption, thead, tbody, and scoped th headers.

Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.

  • Instant access to all advanced modules in Modern HTML & CSS plus 17 more courses
  • Hands-on browser exercises with automated test suites and solutions
  • 14-day money-back guarantee processed via Paddle.com

14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.