The HTML <legend> Element (or HTML Legend Field Element) represents a caption for the content of its parent <fieldset>.

Content categories:
None.

Permitted content:
Phrasing content.

Tag omission:
None, both the starting and ending tag are mandatory.

Permitted parent elements:
A <fieldset> whose first child is this <legend> element.

DOM interface:
HTMLLegendElement
