[<BODY>...</BODY>]
Description
This element contains the body of the document in which the contents that will
be visible to the user are placed. If a <HEAD> section is present in the
page then the body must be placed after this section.
DTD
<!ELEMENT BODY O O (%block;|SCRIPT)+ +(INS|DEL) -- document body -->
<!ATTLIST BODY
%attrs; -- %coreattrs, %i18n, %events --
onload %Script; #IMPLIED -- the document has been loaded --
onunload %Script; #IMPLIED -- the document has been removed --
>
from the
HTML 4.0 DTD,
"Copyright ©
W3C,
(MIT,
INRIA,
Keio).
All Rights Reserved."
Attributes
Core attributes:
class
id
style
title
Internationalization attributes:
dir
lang
Events:
onclick
ondblclick
onmousedown
onmouseup
onmouseover
onmousemove
onmouseout
onkeypress
onkeydown
onkeyup
ALINK
The color which is used to draw an active link on the page. An active link is
a link on which a mousebutton has been pressed down, but not yet released.
See the page Using colors for a description on
specifying colors.
BACKGROUND
Supply an image that is used as the background of the document. If the
document is larger than the image the image is tiled to fill up the used space.
You can use images in the GIF and JPEG format. The Internet Explorer also
accepts Windows BMP files as backgrounds
If you use this attribute in combination with a background color then the image
has precedence over the color. If the image contains a transparent color the
background color will show through these transparent parts.
When used on a page, then also supply a background color that is close to the
general color of the image. This will prevent users who have disabled image
loading, from not being able to read the page. Say for example, you have a
blueish colored background image, like a sea, and use yellow text. Yellow on
blue is easy to read, but if the browser doesn't load the image, and the default
background color of the browser is white, then the user gets a white page
with yellow text!
Now if you add a blue background color to this page this user can read the page just
like those who have images enabled.
BGCOLOR
Sets the background color of the document. The default color for most visual
browsers is #C6C6C6.
See the page Using colors for a description on
specifying colors.
BGPROPERTIES
Possible value is FIXED. This creates a watermark, which is a background
picture that does not scroll when the user scrolls down on the page.
CREDITS
Use the credits attribute to set the URL of a page that will be displayed when
the viewer selects the credits button on the Info Panel.
You can use this page to give credit to your company, co-workers, and
contributors, or for other information that you'd like viewers to see. Note
that the viewer can display the Info Panel by selecting the info button in the
Options Panel.
FONTSIZE
Use the fontsize attribute to set the size to small, medium, and large. The
value for the fontsize attribute overrides the size that the viewer can set in
the WebTV Setup pages. The default value for fontsize is medium.
HSPACE
Use the hspace attribute to set the horizontal fixed space around the body
content. The whole number value for hspace reserves that number of pixels for
the right margin and for the left margin. The default value for hspace is 8
pixels.
WebTV Networks does not recommend changing the value for hspace. Among other
reasons, the WebTV interface uses the right and left margins for drawing the
yellow Highlight rectangle, drawing the edges outside the content area when
the selected text runs up against it.
However, you can set hspace="0"
on some web pages, such as splash
screens, for a good visual effect. If you do change the hspace attribute, note
that the new value will change only the content portion of your web page, not a
sidebar.
Navigator has MARGINWIDTH, and Internet Explorer has LEFTMARGIN for the same
result.
INSTRUCTIONS
Use the instructions attribute to set the URL of a page that will be displayed
when the viewer selects the instructions button on the Info Panel.
You can use this page to explain features to viewers or for other information
that you'd like viewers to see. Note that the viewer can display the info Panel
by selecting the info button in the Options Panel.
LEFTMARGIN
Specifies the left and right margin for the entire body of the page.
Navigator has MARGINWIDTH, and the WebTV browser has HSPACE for the same
result.
LINK
The color which is used to draw a link on the page. The default color for most
visual browsers is #2222BB.
See the page Using colors for a description on
specifying colors.
LOGO
Use the logo attribute to set the URL of a logo image to use in place of the
thumbnail image for this page. Note that the thumb-nail image is used in such
places as the Favorites page and the Send Panel.
The size of the logo image is 70 by 52 pixels. Other size images are scaled to
fit these dimensions.
MARGINHEIGHT
Specifies the margin for the top and bottom of the page. If there is
not enough room for the complete contents of the page plus two times the
margin, no margin will be used.
Internet Explorer has TOPMARGIN, and the WebTV browser has VSPACE for the
same result.
MARGINWIDTH
Specifies the left and right margin for the entire body of the page.
Internet Explorer has LEFTMARGIN, and the WebTV browser has HSPACE for the
same result.
NOHTILEBG
Use the nohtilebg attribute to prevent the background image from tiling
horizontally. The background image will be displayed at the left margin,
repeated from the top of the page to the bottom, but without any horizontal
repeat. The color set with the bgcolor attribute colors the background from
the right edge of the image to the right margin.
Note that when the nohtilebg attribute is set, the background image does not
scroll when the web page content scrolls.
NOVTILEBG
Use the novtilebg attribute to prevent the background image from tiling
vertically. The background image will be displayed at the top of the page,
repeated from left to right, but without any vertical repeat. The color set
with the BGCOLOR attribute colors the background from the bottom edge of the
image to the top of the Title Bar.
Note that when the novtilebg attribute is set, the background image does not
scroll when the web page content scrolls.
ONBLUR
Specifies JavaScript code to execute when the window of the document loses
focus.
ONFOCUS
Specifies JavaScript code to execute when the window of the document acquires
focus. The detection of getting the focus is not correct often the event is
triggered by resizing the netscape window or changing focus to another
application.
ONLOAD
Specifies JavaScript code to execute when the document is loaded. This code
will be executed after all the elements on the page have been loaded.
ONUNLOAD
Specifies JavaScript code to execute when the document is exited. This occurs
when the user leaves the current document.
TEXT
The color which is used to draw normal text. The default color for most visual
browsers is black (#000000).
See the page Using colors for a description on
specifying colors.
TOPMARGIN
Specifies the margin for the top and bottom of the page. If there is
not enough room for the complete contents of the page plus two times the
margin, no margin will be used.
Navigator has MARGINHEIGHT, and the WebTV browser has VSPACE for the same
result.
VLINK
The color which is used to draw a visited link. The default color for most
browsers is purple (#8822BB).
See the page Using colors for a description on
specifying colors.
VSPACE
Use the vspace attribute to set the vertical fixed space around the body
content. The whole number value for vspace reserves that number of pixels for
the top margin and for the bottom margin. The default value for vspace is 6
pixels.
WebTV Networks does not recommend changing the value for vspace. The WebTV
interface uses the top margin for drawing the top of the yellow Highlight
rectangle when the selected text is in the first line of the web page. Note
that the WebTV interface will scroll up when the selected text is in the last
line on the screen, allowing it to draw the Highlight rectangle. However, you
can set vspace="0" on some web pages, such as splash screens, for a good visual
effect. If you do change the vspace at-tribute, note that the new value will
change only the content portion of your web page, not a sidebar.
Navigator has MARGINHEIGHT, and Internet Explorer has TOPMARGIN for the same
result.
XSPEED
Use the xspeed attribute to set the speed for scrolling the background image
horizontally. Note that the web page content remains in place while the
background image moves.
The whole number value for xspeed is in pixels per second. The default value of
xspeed is 0. xspeed="1" is a slow-motion scroll. xspeed="2" or xspeed="4" is
for faster motion.
YSPEED
Use the yspeed attribute to set the speed for scrolling the background image
vertically. Note that the web page content remains in place while the
background image moves.
The whole number value for yspeed is in pixels per second. The default value
for yspeed is 0. yspeed="1" is a slow-motion scroll. yspeed="2" or yspeed="4"
is for faster motion.
Examples