Skip to content
UPEEC

Tables

`table`, `thead`, `tbody`, `tr`, `th` and `td` present tabular data.

Easy
Comments 0
<table>
  <caption>Resistor colour bands</caption>
  <thead><tr><th scope="col">Colour</th><th scope="col">Digit</th></tr></thead>
  <tbody><tr><td>Brown</td><td>1</td></tr></tbody>
</table>

Use tables for data, never for page layout.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.