HTML element: <div>
Availability
|
Full support as of BlackBerry®
Device Software version 3.7.
|
The <div> element is a block-level grouping element. In conjunction with the id and class attributes, the <div> element provides a means of grouping a block of content and tailoring its appearance with styles.
Differences between HTML, XHTML, and XHTML-MP
The align attribute of the <div> element is deprecated in HTML 4.01. XHTML (strict) and XHTML-MP do not support the align attribute for the <div> element.
Attributes
Attribute
|
Value(s)
|
Description
|
Supported in
|
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 following common attributes:
- class
- dir
- id
- lang
- style
- title
|
4.6 or later
|
Event attributes
|
—
|
The <div> element supports 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.