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=#rrggbborcolor nameSets 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=urlProvides the URL to a graphic file to be used as a tiling graphic in the background of the document.
bgcolor=#rrggbborcolor nameSets the color of the background for the document.
link=#rrggbborcolor nameSets the default color for all the links in the document.
text=#rrggbborcolor nameSets the default color for all the text in the document.
vlink=#rrggbborcolor nameSets the color of the visited links for the document.
Navigator 4.0 only
marginwidth=numberSpecifies the distance (in pixels) between the left browser edge and the beginning of the text and graphics in the window.
marginheight=numberSpecifies 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=fixedWhen set to “fixed,” the background image does not scroll with the document content.
leftmargin=numberSpecifies the distance (in pixels) between the left browser edge and the beginning of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access