HTML 5 · Tables and accessibility

Create a table

Use a caption, header cells with scope, and grouped sections.

<table>
  <caption>Monthly sales</caption>
  <thead>
    <tr><th scope="col">Month</th><th scope="col">Total</th></tr>
  </thead>
  <tbody>
    <tr><td>January</td><td>$1,000</td></tr>
  </tbody>
</table>

Official HTML 5 documentation

More tables and accessibility commands

All tables and accessibility commands · HTML 5 cheatsheet

Was this page helpful?