Easy Tutorial
❮ Att Embed Src Att Form Accept ❯

HTML <label> for Attribute

HTML <label> Tag

Example

Two radio buttons with labels:


Browser Support

All major browsers support the for attribute.


Definition and Usage

The for attribute specifies the form element that a label is bound to.


Differences Between HTML 4.01 and HTML5

None.


Syntax

Attribute Values

Value Description
element_id The id of the element that the label is bound to.
❮ Att Embed Src Att Form Accept ❯