Help Center

Local Navigation

HTML element: <dir>

Availability

Partial support as of BlackBerry® Device Software version 3.7.

The <dir> element specifies that the enclosed text is a directory list. By default, the BlackBerry® Browser renders the enclosed text in the default font.

Differences between HTML, XHTML, and XHTML-MP

The <dir> was deprecated in HTML 4.01. XHTML (strict) and XHTML-MP do not support the <dir> element.

Attributes

Attribute

Value(s)

Description

Supported in

compact

Deprecated. When specified, this attribute reduces spacing between list items.

4.6 or later

Common attributes

The <dir> element supports the following common attributes:

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

4.6 or later

Event attributes

The <dir> 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.