HTML 5: The Markup Language (ARIA Edition)

legendtitle or explanatory caption # T

The legend element represents a title or explanatory caption for the rest of the contents of the legend element’s parent element.

Permitted contents #

Permitted attributes #

global attributes
Any attributes permitted globally.
region = #
(detailed attribute description to come)

Tag omission #

A legend element must have both a start tag and an end tag.

Permitted parent elements #


DOM interface #

interface HTMLLegendElement : HTMLElement {
  readonly attribute HTMLFormElement? form;

Typical default display properties #

legend {
display: block;
padding-start: 2px;
padding-end: 2px;
border: none; }