Easy Tutorial
❮ Met Text Blur Met Canvas Clearrect ❯

Label form Attribute

Label Object

Example

Returns the id of the form that contains the <label> element:

x Output result:


Definition and Usage

The form attribute returns a reference to the form that contains the label.

If successful, this attribute returns a form object.

Note: This attribute is read-only.


Browser Support

All major browsers support the form attribute.


Syntax

Technical Details

| Return Value: | A reference to the form that contains the label. If the label is not within a form, it returns null. | | --- | --- |


Label Object

❮ Met Text Blur Met Canvas Clearrect ❯