Interface HTMLLabelElement

  • All Superinterfaces:
    Element, HTMLElement, Node

    public interface HTMLLabelElement
    extends HTMLElement
    Form field label text. See the LABEL element definition in HTML 4.0.
    • Method Detail

      • getForm

        HTMLFormElement getForm()
        Returns the FORM element containing this control.Returns null if this control is not within the context of a form.
      • getAccessKey

        java.lang.String getAccessKey()
        A single character access key to give access to the form control. See the accesskey attribute definition in HTML 4.0.
      • setAccessKey

        void setAccessKey​(java.lang.String accessKey)
      • getHtmlFor

        java.lang.String getHtmlFor()
        This attribute links this label with another form controlby id attribute. See the for attribute definition in HTML 4.0.
      • setHtmlFor

        void setHtmlFor​(java.lang.String htmlFor)