HTML and CSS Reference
In-Depth Information
<caption>
Function
Defines a table caption
align
,
class, dir, id, lang, onClick,
onDblClick, onKeyDown, onKeyPress, onKeyUp,
onMouseDown, onMouseMove, onMouseOut,
onMouseOver, onMouseUp, style, title, va-
Attributes
lign
End tag
</caption>
; never omitted
Contains
body_content
Used in
table_content
10.2.5.1. The align and valign attributes
By default, browsers place the caption's contents centered above the
table. You may place it below the table with the
align
attribute set to the
value
bottom
(the value
top
, of course, is equivalent to the default).
Also use the
align
attribute to control the horizontal position of the cap-
tion, but the interpretation of the alternative values varies with the popu-
lar browsers: with Internet Explorer and Opera, for example, setting the