Help Center

Local Navigation

HTML element: <body>

Availability

BlackBerry® Device Software 3.2 or later

The <body> element defines the page body, which contains all the renderable content.

Considerations

The presentation attributes of the <body> are deprecated in HTML 4.01. Use styles instead.

Attributes

Attribute

Value(s)

Description

Availability

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 class, dir, id, lang, style, and title attributes.

For more information, see Common attributes.

Event attributes

The <body> element supports the onclick, onkeydown, onkeypress, onkeyup, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, and onunload events.

For more information, see HTML event attributes.

Index


Was this information helpful? Send us your comments.