GUIDE深度 · Deep dive

Accessible HTML Tables

A table is structured data, not a visual grid. Use <caption> for the topic and <th scope> for headers so screen readers can associate cells with headers.

更新 2026-10-31 · 公式可核验

Basic structure

<caption> for the table title; <thead>/<tbody> for grouping.

Use <th scope="col"> or scope="row" for headers.

What not to do

Do not use tables for page layout.

Do not skip headers and stack td cells.

FAQ

Is caption required?

Not strictly required, but strongly recommended; aria-label can substitute.

What about complex tables?

Use scope/headers associations or split into simpler tables.

Sources

Related calculators

HTML Table GeneratorSet rows, columns and a header to generate copyable HTML table code.

More guides

Making Tables ResponsiveRead guide