HTML legend tag

<legend> tag in HTML

The <legend> tag represents a caption, name or title for a set of controls, grouped with the fieldset element.

This tag becomes vital when readability needs to be improved, specially in large forms.

Example

Try Yourself