References

Collection of references for web development.

HTML caption tag

Description

The HTML <caption> element is used to define a caption for a table, this should only be used within a table.

Example

<table>
	<caption>Passengers</caption>
	<tr>
		<th>Name</th>
		<th>Age</th>
	</tr>
	<tr>
		<td>David Deacon</td>
		<td>28</td>
	</tr>
	<tr>
		<td>Barry Richards</td>
		<td>52</td>
	</tr>
</table>