<CAPTION> Tag & its Attribute
HTML Tag <CAPTION>
<CAPTION> Used inside <TABLE> tags to specify a description for a table.
Attribute of <CAPTION> Tag
ALIGN
Indicates whether the caption appears at the top, bottom, left, or right of the table.
<CAPTION ALIGN="TOP">
Seattle Staff Directory
</CAPTION>
Possible Values
TOP, BOTTOM, LEFT, RIGHT
CLASS
Indicates which style class applies to the <CAPTION> element.
<CAPTION CLASS="casual">Hydrogen vs
Oxygen</CAPTION>
Possible Values
Class Name .
ID
Assigns a unique ID selector to an instance of the <CAPTION> tag. When you then assign a style to that ID selector, it affects only that one instance of the <CAPTION> tag.
<TABLE>
<CAPTION ID="dkm">Great
Painters</CAPTION>
Possible Values
Any ID Name.
STYLE
Specifies Style Sheet commands that apply to the contents of the <CAPTION> tags.
<CAPTION STYLE="background: red">
Possible Values
CSS Property with value.
TITLE
Specifies text assigned to the tag. You might use this attribute for context-sensitive help within the document. Browsers may use this to show tool tips over the caption.
<CAPTION TITLE="Table caption">
Possible Values
Any Text Message.