Interface HTMLLabelElement

All Superinterfaces:
Element, EventTarget, HTMLElement, InnerHTML, Node, NonDocumentTypeChildNode, ParentNode
All Known Implementing Classes:
HTMLLabelElementImpl

public interface HTMLLabelElement extends HTMLElement
Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface.
  • Method Details

    • getControl

      HTMLElement getControl()

      getControl.

      Returns:
      a HTMLElement object.
    • getForm

      HTMLFormElement getForm()
      Retrieves a reference to the form that the object is embedded in.
      Returns:
      a HTMLFormElement object.
    • getHtmlFor

      String getHtmlFor()
      Sets or retrieves the object to which the given label object is assigned.
      Returns:
      a String object.
    • setHtmlFor

      void setHtmlFor(String htmlFor)

      setHtmlFor.

      Parameters:
      htmlFor - a String object.