Table: Caption

The <caption> tag must be inserted immediately after the <table> tag. Captions are not in bold, but they are centered at the top of the table. To add a caption to the table, use the <caption> tag:

<caption> Caption Text </caption>
HTML file: Displayed by browser:
<table>
  <caption>Monthly Savings</caption>
  <tr>
    <th>Month</th>
    <th>Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td>$100</td>
  </tr>
  <tr>
    <td>February</td>
    <td>$50</td>
  </tr>
</table>

Monthly Savings
Month Savings
January $100
February $50

Back button Table of Contents Next button