legend

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

Attributes

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

Global

CSS

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

Example | CSS

External

W3C HTML 4.01 Specification

W3C HTML5

W3C HTML 5.1