HTML 5 <caption> Tag
Example
A table with a caption:
<table border="1">
<caption>Monthly savings</caption>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table> |
View it » |
Definition and Usage
The <caption> tag defines a table caption.
The <caption> tag must be inserted immediately after the <table> tag.
You can specify only one caption per table.
Usually the caption will be centered above the table.
Differences Between HTML 4.01 and HTML 5
The "align" attribute which was deprecated in HTML 4.01, is
not supported in HTML 5. Use CSS instead.
Standard Attributes
The <a> tag also supports the Standard Attributes in HTML 5.
Event Attributes
The <a> tag also supports the Event Attributes
in HTML 5.
|