Easy Tutorial
❮ Att A Coords Canvas Shadowoffsety ❯

HTML <label> form Attribute

HTML <label> Tag

Example

A <label> element outside the form element (but still part of the form):


Browser Support

All major browsers support the form attribute.


Definition and Usage

The form attribute specifies one or more forms the <label> element belongs to.


Differences Between HTML 4.01 and HTML5

The form attribute is new in HTML5.


Syntax

Attribute Values

Value Description
form_id Specifies a space-separated list of ids of one or more forms the <label> element belongs to.
❮ Att A Coords Canvas Shadowoffsety ❯