FileDocCategorySizeDatePackage
HTMLLabelElement.javaAPI DocJava SE 5 API1562Fri Aug 26 14:58:40 BST 2005org.w3c.dom.html

HTMLLabelElement

public interface HTMLLabelElement implements HTMLElement
Form field label text. See the LABEL element definition in HTML 4.0.

See also the Document Object Model (DOM) Level 2 Specification.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetAccessKey()
A single character access key to give access to the form control. See the accesskey attribute definition in HTML 4.0.

public org.w3c.dom.html.HTMLFormElementgetForm()
Returns the FORM element containing this control. Returns null if this control is not within the context of a form.

public java.lang.StringgetHtmlFor()
This attribute links this label with another form control by id attribute. See the for attribute definition in HTML 4.0.

public voidsetAccessKey(java.lang.String accessKey)

public voidsetHtmlFor(java.lang.String htmlFor)