Back to Concepts

<caption>

Table caption.

The `<caption>` tag defines a table caption. The `<caption>` tag must be inserted immediately after the `<table>` tag.

Live Example & Code

Preview Output
<table>
  <caption>Monthly savings</caption>
  <tr>
    <th>Month</th>
    <th>Savings</th>
  </tr>
</table>
HTMLViz
© 2026 HTMLViz. Open Source Learning.