How to use <caption> tag?

8 views

<caption> marks a short description to be added to a table. It may only be placed immediately after an opening <table> tag.

<caption> . . . </caption>
Example

<html>
<body>
<table>
<caption>This is the caption for this table.</caption>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</table>
</body>
</html>

answered by (5k points) 7 9 12