the complete webmaster
tutorials reviews reference
ASP
CGI
FrontPage
HTML
Java
JavaScript

home / reference / html

<body></body>
background   bgcolor   text   link   vlink   alink   bgproperties   leftmargin   topmargin

The <body> tag is required in every HTML document and should appear inside the <html> tag and after the <head> tag. All visible portions of the HTML document should be contained within the <body> tag. The <body> tag also specifies global attributes of an HTML document such as the background color and text color.

<body background="">

   Description
   The background attribute specifies an image that will be tiled as the background of a specific HTML document. You may use either a GIf or JPG and when using Internet Explorer you may also specify a Windows BMP.
Code
   <body background="IMAGEURL">  .  .  .  </body>

<body bgcolor="">

   Description
   The bgcolor attribute allows you to specify the background color for the HTML document. Colors may be entered in the hexadecimal form #RRGGBB or may be specified with one of the following words: aqua, black, blue, fuchsia, grey, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow.
Code (Hexadecimal)
   <body bgcolor="#FF0000">  .  .  .  </body>
Code (Color Name)
   <body bgcolor="red">  .  .  .  </body>

<body text="">

   Description
   The text attribute allows you to change the base text color of the HTML document. Colors may be entered in the hexadecimal form #RRGGBB or may be specified with one of the following words: aqua, black, blue, fuchsia, grey, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow.
Code (Hexadecimal)
   <body text="#FF0000">  .  .  .  </body>
Code (Color Name)
   <body text="red">  .  .  .  </body>

<body link="">

   Description
   The link attribute allows you to change the base link color of the HTML document. Colors may be entered in the hexadecimal form #RRGGBB or may be specified with one of the following words: aqua, black, blue, fuchsia, grey, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow.
Code (Hexadecimal)
   <body link="#FF0000">  .  .  .  </body>
Code (Color Name)
   <body link="red">  .  .  .  </body>

<body vlink="">

   Description
   The vlink attribute allows you to change the base visited link color of the HTML document. Colors may be entered in the hexadecimal form #RRGGBB or may be specified with one of the following words: aqua, black, blue, fuchsia, grey, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow.
Code (Hexadecimal)
   <body vlink="#FF0000">  .  .  .  </body>
Code (Color Name)
   <body vlink="red">  .  .  .  </body>

<body alink="">

   Description
   The alink attribute allows you to change the base active link color of the HTML document. Colors may be entered in the hexadecimal form #RRGGBB or may be specified with one of the following words: aqua, black, blue, fuchsia, grey, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow.
Code (Hexadecimal)
   <body alink="#FF0000">  .  .  .  </body>
Code (Color Name)
   <body alink="red">  .  .  .  </body>

<body bgproperties="">

   Description
   The bgproperties attribute fixes the background image so that it doesn't scroll as a normal background image does. The value of bgproperties must be "fixed." This attribute is Internet Explorer specific.
Code
   <body bgproperties="fixed">  .  .  .  </body>

<body leftmargin="">

   Description
   The leftmargin allows you to specify the amount of space in pixels between the left and right edges of the browser window and the content of the HTML page. This property is Internte Explorer specific.
Code
   <body leftmargin="PIXELS">  .  .  .  </body>

<body topmargin="">

   Description
   The topmargin allows you to specify the amount of space in pixels between the top and bottom edges of the browser window and the content of the HTML page. This property is Internte Explorer specific.
Code
   <body topmargin="PIXELS">  .  .  .  </body>
write for us about us advertise

Copyright 1997, 1998 A Big Lime. All rights reserved.

/body>