HTML <legend>
query_builder | Christopher PisaniThe HTML element <legend> works along with element <fieldset> representing a caption. By default the <fieldset> element borders the container and the <legend> element is placed inline with the border.
<fieldset>
<legend>Choose your favorite monster</legend>
<input type="radio" id="kraken" name="monster">
<label for="kraken">Kraken</label><br/>
<input type="radio" id="sasquatch" name="monster">
<label for="sasquatch">Sasquatch</label><br/>
<input type="radio" id="mothman" name="monster">
<label for="mothman">Mothman</label>
</fieldset>
Available Attributes
No specific attributes are assigned for this element, other than the standard global attributes.