<CAPTION>...</CAPTION>
Description
Specify the caption of a table. This element is only valid inside the
TABLE element.
Inside a captions only plain text and text-level elements are allowed. Block
level elements are not permitted.
DTD
<!ELEMENT CAPTION - - (%inline;)* -- table caption -->
<!ENTITY % CAlign "(top|bottom|left|right)">
<!ATTLIST CAPTION
%attrs; -- %coreattrs, %i18n, %events --
>
from the
HTML 4.0 DTD,
"Copyright ©
W3C,
(MIT,
INRIA,
Keio).
All Rights Reserved."
Attributes
Core attributes:
class
id
style
title
Internationalization attributes:
dir
lang
Events:
onclick
ondblclick
onmousedown
onmouseup
onmouseover
onmousemove
onmouseout
onkeypress
onkeydown
onkeyup
ALIGN
Specify where the caption will displayed. Possible values are TOP, BOTTOM, LEFT
and RIGHT. The default is TOP.
Only one caption is allowed in a table, and must be specified immediately after
the opening TABLE element.
The values LEFT and RIGHT are not supported by Netscape Navigator.
VALIGN
This attribute the vertical placement of the caption. Allowed values are
TOP for a caption above the table or BOTTOM for a caption blow the table.
Default is TOP.
Examples
|
<TABLE border width="50%">
<CAPTION align="right" valign="bottom">Here's a caption for the table</CAPTION>
<TR><TH>Header 1</TH><TH>Header 2</TH><TH>Header 3</TH></TR>
<TR><TD>Value 1</TD><TD>Value 2</TD><TD>Value 3</TD></TR>
<TR><TD>Value 4</TD><TD>Value 5</TD><TD>Value 6</TD></TR>
</TABLE>
|
|
|
Here's a caption for the table
Header 1 | Header 2 | Header 3 |
Value 1 | Value 2 | Value 3 |
Value 4 | Value 5 | Value 6 |
|