Name

body

Synopsis

<body>...</body>

The body of a document contains the document’s content. Content may be presented visually (as in a graphical browser window) or aurally (as by a screen reader). The body element is required in XHTML documents; in HTML it is optional.

Attributes

Core(id, class, style, title), Internationalization, Events(plus onload, onunload)

alink="#rrggbb" or "color name"

Deprecated. Sets the color of active links (the color while the mouse button is held down during a click). Color is specified in hexadecimal RGB values or by standard web color name.

background=" URL "

Deprecated. Provides the location of a graphic file to be used as a tiling graphic in the background of the document.

bgcolor="#rrggbb" or "color name"

Deprecated. Sets the color of the background for the document. Color is specified in hexadecimal RGB values or by standard web color name.

link="#rrggbb" or "color name"

Deprecated. Sets the default color for all the links in the document. Color is specified in hexadecimal RGB values or by standard web color name.

text="#rrggbb" or "color name"

Deprecated. Sets the default color for all the non-hyperlink and unstyled text in the document. Color is specified in hexadecimal RGB values or by standard web color name.

vlink="#rrggbb" or "color name"

Deprecated. Sets the color of the visited links (links that have already been followed) for the document. Color is specified in hexadecimal RGB values or by standard web color name.

Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.