The
<caption> tag defines a table caption.
The
<caption> tag must be inserted immediately after the
<table> tag.
There is can be only one caption per table.
Tip: By default, a table caption will be
center-aligned above a table. However, the
CSS properties
text-align and
caption-side can be used to
align and place the
caption.
The code:
<table border='1' width=50%>
<caption>Monthly income</caption>
<tr> <th>Month</th> <th>Income</th> </tr>
<tr> <td>January</td> <td>$1000</td> </tr>
</table>
Ввійдіть щоб вподобати
Ввійдіть щоб прокоментувати