Help Center

Local Navigation

Object: HTMLLabelElement

Availability

BlackBerry® Device Software version 4.6 or later

Extends

HTMLElement

The HTMLLabelElement object represents a <label> element in an HTML document.

The <label> element provides a descriptive label for an <input>, <select>, and <textarea> elements in a form.

HTMLLabelElement properties

Property name

Type

Description

Status

Support level

Availability

accessKey

DOMString

Specifies the keypad key that gives access to the element.

writable

DOM 2 HTML

4.6 or later

form

HTMLFormElement

Returns the parent <form> element for the form control.

read only

DOM 2 HTML

4.6 or later

htmlFor

DOMString

Specifies the form control with which the label is associated. The value must be the value of the id attribute of the related element.

writable

DOM 2 HTML

4.6 or later

Previous topic: HTMLIElement properties

Was this information helpful? Send us your comments.