<CAPTION>
The CAPTION element is used to add a caption to an HTML table.
The caption may be any valid HTML that you want to appear alongside
the table and typically describes the type of information found in
the table.
The CAPTION tag is only valid immediately after an opening TABLE
tag. Each table may only have one CAPTION element associated with
it.
Attributes
Attribute |
Description |
ID |
Identifies this tag to reference in script (program code) |
CLASS |
Define the class used to render this element (defined by a style sheet) |
TITLE |
A title that is associated with the element (displayed as a tooltip in Internet Explorer) |
ALIGN |
[Deprecated] Specifies the position of the caption with respect to the enclosing TABLE element. May be one of: top, bottom, left, right . |
|
Example
<TABLE border="1">
<CAPTION>Days per Month</CAPTION>
<TR><TH>Month</TH><TH>Days</TH></TR>
<TR><TD>January</TD><TD>31</TD></TR>
<TR><TD>February</TD><TD>28</TD></TR>
</TABLE>
Renders As:
Days per Month
Month | Days |
January | 31 |
February | 28 |
Compatibility
HTML 4.01
|