HTML and CSS Reference
In-Depth Information
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
End tag
</legend> ; may be omitted in HTML
Used in
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:
<legend>Personal information</legend>
<label>Name:<input type="text" /></label>
Search WWH ::

Custom Search