Name

<body> — NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3

Synopsis

                     <body>...</body>
                  

Defines the beginning and the end of the document body. The body contains the content of the document (the part that is displayed in the browser window). Attributes to the <body> tag affect the entire document.

Attributes

alink="# rrggbb " or color name

Sets the color of active links (i.e., 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. Chapter 5, explains how to specify color in HTML.

background= url

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

bgcolor="# rrggbb " or color name

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

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

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

vlink="# rrggbb " or color name

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

Netscape Navigator 4.0 only

marginwidth=number

Specifies the distance (in number of pixels) between the left browser edge and the beginning of the text and ...

Get Web Design in a Nutshell 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.