HTML

HTMLLegendElement

HTMLLegendElement<legend>

The caption for the "fieldset" element is defined by the "legend" tag.

Browser Compatibility

legend Chrome Edge Firefox Safari Opera
<label> Yes Yes Yes Yes Yes