Skip to content
HTML.ONE
Home HTML Elements

HTML <legend> Element

Provides a caption for a fieldset.

Example

<fieldset><legend>Shipping</legend><label>City <input></label></fieldset>

Further reference

HTML Living Standard

Live preview