Help Center

Local Navigation

HTML element: <label>

Availability

BlackBerry® Device Software 4.6 or later

The <label> element provides a descriptive label for <input>, <select>, and <textarea> elements in a form. By default, the BlackBerry® Browser displays labels in the default font.

Attributes

Attribute

Value(s)

Description

Availability

for

id_reference

This attribute identifies the <input>, <select>, or <textarea> element with which the label is associated. The value must be the value of the id attribute of the related element.

4.6 or later

Common attributes

The <label> element supports the class, dir, id, lang, style, and title attributes.

For more information, see Common attributes.

Event attributes

The <label> element supports the onblur, onclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, and onmouseup events.

For more information, see HTML event attributes.

Index


Was this information helpful? Send us your comments.