HTML element: <body>
Availability
|
Partial support as of BlackBerry®
Device Software version 3.2.
Full support as of BlackBerry Device Software
version 4.6.
|
The <body> element defines the page body, which contains all the renderable content.
Differences between HTML, XHTML, and XHTML-MP
The presentation attributes of the <body> are deprecated in HTML 4.01. Use styles instead.
XHTML (strict) and XHTML-MP do not support these presentation attributes.
Attributes
Attribute
|
Value(s)
|
Description
|
Supported in
|
background
|
URI
|
Deprecated. This attribute defines an image used as the background.
|
4.0 or later
|
bgcolor
|
color
|
Deprecated. This attribute defines the background color for the page body.
|
4.0 or later
|
link
|
color
|
Deprecated. This attribute defines the color of unvisited links.
|
4.0 or later
|
text
|
color
|
Deprecated. This attribute defines the color of the body text.
|
4.0 or later
|
Common attributes
|
—
|
The <body> element supports the following common attributes:
- class
- dir
- id
- lang
- style
- title
|
4.0 or later
|
Event attributes
|
—
|
The <body> element supports the following events:
- onblur
- onclick
- onfocus
- onkeydown
- onkeypress
- onkeyup
- onmousedown
- onmousemove
- onmouseout
- onmouseover
- onmouseup
|
4.0 or later
|
Index
Was this information helpful? Send us your comments.