The HTMLLabelElement interface gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface.
Inherits properties from its parent, HTMLElement.
HTMLLabelElement.control Read onlyA HTMLElement representing the control with which the label is associated.
HTMLLabelElement.form Read onlyA HTMLFormElement object representing the form with which the labeled control is associated, or null if there is no associated control, or if that control isn't associated with a form. In other words, this is just a shortcut for HTMLLabelElement.control.form.
HTMLLabelElement.htmlForA string containing the ID of the labeled control. This reflects the for attribute.
Note: To programmatically set the for attribute, use htmlFor.
No specific methods; inherits methods from its parent, HTMLElement.
<label><form>HTMLFormElement