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

  1. The form attribute returns the FORM containing this control.
  2. The form attribute returns null if this control is not within the context of a form.
  3. The accessKey attribute is a single character access key to give access to the form control.
  4. 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