Skip to main content

html-tags.com

<table>

Genuinely two-dimensional data — rows and columns that mean something together.

Baseline: Widely available · Tables

When to use it

For datasets where cells relate to both a row and a column header; always with caption and scoped headers.

When not to

Never for layout — that war was won twenty years ago; use CSS grid.

Example

Loaves sold by weekday
DayLoaves
Monday18
<table>
  <caption>Loaves sold by weekday</caption>
  <thead><tr><th scope='col'>Day</th><th scope='col'>Loaves</th></tr></thead>
  <tbody><tr><th scope='row'>Monday</th><td>18</td></tr></tbody>
</table>
Rendered live above, source below.

Authoritative references