SyntaxStudy
Sign Up
HTML Beginner 3 min read

Accessible Tables

Accessible Tables

Data tables need <caption>, <th scope>, and <thead>/<tbody> so screen readers can navigate column/row relationships.

Example
<table>
  <caption>Q1 2024 Sales by Region</caption>
  <thead>
    <tr>
      <th scope="col">Region</th>
      <th scope="col">Sales</th>
      <th scope="col">Growth</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th scope="row">North</th>
      <td>$12,400</td>
      <td>+8%</td>
    </tr>
  </tbody>
</table>
Pro Tip

Use scope="col" on column headers and scope="row" on row headers.