Designer at work

the <body>tag

The opening and closing body tags mark out the section of the web page that is to be displayed in the browser window.

There are several attributes you can use in the body tag. None are essential. The attributes are used to specify things such as the color of text, links and background. Another is used to specify a background image. Others specify the size of margins. However, there are better ways to do all these things. For the moment we will concentrate on the colors and the background image.

the attributes

color          sets the text color.
               example: color="navy"

link           sets the color of a hyperlink
               example: link="lightblue"	    

vlink          sets the color of a visited link
               example: vlink="#B0B0B0"
               note: this is a light grey, the
                     number is specified in
                     hexadecimal form

bgcolor        sets the background color of the page
               example: bgcolor="#207060"
               note: this is a dark bluish color
                     it is recommended that you set
                     both "color" and "bgcolor"
                     together to ensure good contrast

background     sets the background image
               example: background="images/my-bg.gif"
               note: the background image is a file called
                     my-bg.gif and is in the folder called
                     images