HTMLLabelElement Interface
The HTMLLabelElement Interface is a form field label text.
IDL Definition
Interface HTMLLabelElement : HTMLElement {
readonly attribute HTMLFormElement form;
attribute DOMString accessKey;
attribute DOMString htmlFor;
};
Semantic Requirements
- The form attribute returns the FORM containing this control.
- The form attribute returns null if this control is not within the context of a form.
- The accessKey attribute is a single character access key to give access to the form control.
- The htmlFor attribute links this label with another form control by id attribute.
If you have comments or suggestions, email me at mbrady@nist.gov