HTMLLabelElement: form property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Theform read-only property of theHTMLLabelElement interface returns anHTMLFormElement object that owns thecontrol associated with this<label>, ornull if this label is not associated with alabelableform-associated element (<button>,<input>,<output>,<select>,<textarea>, orform-associated custom elements) that is owned by a form.
Unlikeform-associated elements, the<label> element does not have aform attribute. This property does not reflect any HTML attribute, but is just a shortcut forlabel.control.form.
In this article
Value
AnHTMLFormElement ornull.
Specifications
| Specification |
|---|
| HTML> # dom-label-form-dev> |