Help Center

Local Navigation

HTML element: <h1> to <h6>

Availability

Full support as of BlackBerry® Device Software version 3.7.

The <h1> to <h6> heading elements are used to provide organizational headings for the document. By default, the BlackBerry® Browser renders heading elements in bold. The <h1> element appears in the largest font, with the font size decreasing for each successive heading level.

Differences between HTML, XHTML, and XHTML-MP

The align attribute of all heading elements is deprecated in HTML 4.01. XHTML (strict) and XHTML-MP do not support the align attribute for these elements.

Attributes

Attribute

Value(s)

Description

Availability

align

center

justify

left

right

Deprecated. This attribute specifies the horizontal alignment of the heading text.

3.7 or later

Common attributes

The heading elements support the following common attributes:

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

4.6 or later

Event attributes

The heading elements support the following events:

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

4.6 or later

Index


Was this information helpful? Send us your comments.