Name
legend
Type
legend
Synopsis
Title for a _fieldset
Description
legend is always used in combination with fieldset. It is the title of a fieldset.
Parameters
legend
The title comes between the beginning and end tags (see example).
Example
<form action="get">
<fieldset>
<legend class="legend-example">Choose your favorite monster</legend>
<input class="legend-example" type="radio" id="kraken" name="monster" />
<label for="kraken">Kraken</label><br/>
<input class="legend-example" type="radio" id="sasquatch" name="monster" />
<label for="sasquatch">Sasquatch</label><br/>
<input class="legend-example" type="radio" id="mothman" name="monster" />
<label for="mothman">Mothman</label>
</fieldset>
</form>
Note
Links
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset