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:
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> |
|