Help Center

Local Navigation

HTML element: <div>

Availability

BlackBerry® Device Software 3.7 or later

The <div> element is a block-level grouping element. In conjunction with the id and class attributes applied to other elements, the <div> element provides a means of grouping a block of content and tailoring its appearance with styles.

Considerations

The align attribute of the <div> element is deprecated in HTML 4.01.

Attributes

Attribute

Value(s)

Description

Availability

align

center

justify

left

right

Deprecated. This attribute specifies how text within the <div> element is horizontally aligned.

3.7 or later

Common attributes

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

For more information, see Common attributes.

Event attributes

The <div> element supports the onclick, 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.