HTMLLabelElement
The HTMLLabelElement interface gives access to properties specific to <label> elements. It inherits from HTMLElement.
Properties
Inherits properties from its parent, HTMLElement.
| Name | Type | Description |
|---|---|---|
accessKey |
DOMString |
Reflects the accesskey HTML attribute. |
control 只读 |
HTMLElement |
The labeled control. |
form 只读 |
HTMLFormElement |
The form owner of this label. |
htmlFor |
DOMString |
The ID of the labeled control. Reflects the for attribute. |
Methods
No specific method; inherits properties from its parent, HTMLElement.
Specifications
| Specification |
|---|
| HTML Standard # htmllabelelement |
Browser compatibility
BCD tables only load in the browser
See also
- The HTML element implementing this interface:
<label>