Name

<body> — NN: 2, 3, 4 &bull; MSIE: 2, 3, 4, 5 &bull; HTML 4 &bull; WebTV &bull; 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.

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.

link=#rrggbb or color name

Sets the default color for all the links in the document.

text=#rrggbb or color name

Sets the default color for all the text in the document.

vlink=#rrggbb or color name

Sets the color of the visited links for the document.

Navigator 4.0 only

marginwidth=number

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

marginheight=number

Specifies the distance (in pixels) between the top edge of the browser and the top edge of text or graphics in the window.

Internet Explorer only

bgproperties=fixed

When set to “fixed,” the background image does not scroll with the document content.

leftmargin=number

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

Get HTML Pocket Reference 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.