<legend> : fieldset legend
The LEGEND element allows authors to assign a caption to a FIELDSET. The legend improves accessibility when the FIELDSET is rendered non-visually.
Attributes
-) align = top|bottom|left|right
Deprecated. This attribute specifies the position of the legend with respect to the fieldset. Possible values:
top: The legend is at the top of the fieldset. This is the default value.
bottom: The legend is at the bottom of the fieldset.
left: The legend is at the left side of the fieldset.
right: The legend is at the right side of the fieldset.
Attributes defined elsewhere
-) id, class (document-wide identifiers)
-) lang (language information), dir (text direction)
-) title (element title)
-) style (inline style information)
-) accesskey (access keys)
-) onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events)
Example
<fieldset>
<legend>legend text </legend>
the text ...
</fieldset>