HTML Tutorial
Purpose: Defines the caption of a table.
<caption>
tag.</caption>
tag.Examples:
<caption>Table of Contents</caption>
<table>
<caption>Employee List</caption>
<thead>
<tr>
<th>Name</th>
<th>Department</th>
</tr>
</thead>
<tbody>
<tr>
<td>John Doe</td>
<td>Sales</td>
</tr>
</tbody>
</table>
Output:
Name | Department |
---|---|
John Doe | Sales |