You are here : htmlHTML 5caption

<caption> - HTML 5

The <caption> tag defines a table caption.

The <caption> tag must be inserted immediately after the tag.

Note: You can specify 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.


Syntax

<caption> Some Caption Here </caption>


Example

<table>
	<caption>Monthly savings</caption>
	<tr>
		<th>Month</th>
		<th>Savings</th>
	</tr>
	<tr>
		<td>January</td>
		<td>$100</td>
	</tr>
</table>


Output / Return Value


Limitations


Alternatives / See Also


Reference