Menu Home

label

osbo.com | HTML | Elements | label

The label HTML element represents a caption in a user interface.

Syntax

HTML

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

Attributes

Global

Name Value Description
for IDREF Identifies a form control for which the label is a caption
form IDREF Identifies a form with which to associate the element

CSS

label {
    cursor: default;
}

Examples

for

form

CSS

Web Hypertext Application Technology Working Group (WHATWG)