HTML and CSS Reference
In-Depth Information
Name
legend
Synopsis
<legend> . . . </legend>
Assigns a caption to a fieldset (it must be the first child of a fieldset element). This im-
proves accessibility when the fieldset is rendered nonvisually.
Usage
Categories:
None
Permitted contexts:
As the first child of a fieldset element
Permitted content:
Phrasing content
Start/end tags:
Required/Required
Attributes
HTML5 Global Attributes
Example
<fieldset>
<legend> Mailing List Sign-up </legend>
<ul>
<li><label>Add me to your mailing list
<input type="radio" name"list"></label></li> <li><label>No thanks <input
name"list" value="no">
Search WWH ::




Custom Search