Follow the Example.
Example:
HTML
<style>
table,th,td {
border:1px solid black;
}
caption {
display: table-caption;
text-align: center;
}
</style>
<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>
How to create HTML <caption> Tag | HTML Tag |
What Type of Browsers will Support for HTML <caption> Tag | HTML Tag |
How to take Position table captions (with CSS) | HTML Tag |
How to set Default CSS Settings for HTML <caption> Tag | HTML Tag |
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |