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