Language References
Specifies a caption for the TABLE element. | HTML 3.2, 4, 4.01, 5 |
HTML Syntax
<caption
align = bottom | center | left | right | top
class = classname
id = value
style = css properties
title = text
valign = bottom | top
event = script
>
When present, the CAPTION element’s text should describe the nature of the table. The CAPTION element is only permitted immediately after the TABLE start tag. A TABLE element may only contain one CAPTION element.
This element is a block element.
CAPTION Members
<table>
<caption valign="bottom">This caption will appear below the table.</caption>
<tr>
<td>This text is inside the table.</td>
</tr>
</table>
This example illustrates rendering of the CAPTION element in the various alignment options.
Show me