HTML and CSS Reference
In-Depth Information
<legend>
Function Creates a legend for a field set within a form
accesskey , align , class , dir , id , lang , onClick ,
onDblClick , onKeyDown , onKeyPress , onKeyUp ,
onMouseDown , onMouseMove , onMouseOut ,
onMouseOver , onMouseUp , style , title
Attributes
End tag
</legend> ; may be omitted in HTML
Contains
legend_content
Used in
form_content
In addition to supporting many of the form element attributes described
earlier in section 9.9 , the <legend> tag accepts the accesskey attribute and
the align attribute. The value of align may be top , bottom , left , or right ,
instructing the browser where the legend should be placed with respect
to the field set.
Bringing all these tags together, here are a field set and legend contain-
ing a few form elements, individually labeled:
<fieldset>
<legend>Personal information</legend>
<label>Name:<input type="text" /></label>
Search WWH ::




Custom Search