Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. HTMLLabelElement
  4. form

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.

Value

AnHTMLFormElement ornull.

Specifications

Specification
HTML
# dom-label-form-dev

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp