Help Center

Local Navigation

HTML element: <label>

Availability

Full support as of BlackBerry® Device Software version 4.6.

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.

Differences between HTML, XHTML, and XHTML-MP

None.

Attributes

Attribute

Value(s)

Description

Supported in

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 following common attributes:

  • class
  • dir
  • id
  • lang
  • style
  • title

4.6 or later

Event attributes

The <label> element supports the following events:

  • onblur
  • onclick
  • onfocus
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmousemove
  • onmouseout
  • onmouseover
  • onmouseup

4.6 or later

Index


Was this information helpful? Send us your comments.