Menu Home

legend

osbo.com | HTML | Elements | legend

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

Syntax

HTML

<legend attribute-name="attribute-value"></legend>

Attributes

Global

CSS

legend {
    border: none;
    display: block;
    padding-left: 2px;
    padding-right: 2px;
}

Examples

CSS

Web Hypertext Application Technology Working Group (WHATWG)