Ou Courses  Banner ADBH Web - HTML Help - Body section
ADBH Web 08-Aug-2008

HTML Help - The Body section

HTML The Body section

The part where you put your viewable page content is called the BODY section.

<body> your viewable page content </body> These mark the start and finish of the body section of your HTML document.

Setting the look of your page:

<body bgcolor=000000> Sets the background colour of the page. It is usual to use "hex" values i.e. FFFFFF (black) - 000000 (white) can also be set as colours i.e. "blue"

<body text= HEX value of colour or colour name> Sets text colour set in values as before

<body background= set the background to your page you'll need a gif or jpeg file for this>

<body link=HEX value of colour or colour name> Sets link colour i.e. colour of link before it has been clicked

<body vlink=HEX value of colour or colour name> Sets visited link colour

<body alink=HEX value of colour or colour name> Sets colour link goes when it gets clicked.

example usage: <body bgcolor="grey" link="red" vlink="green">

 

Note: The colours for this page are set by a stylesheet however if I hadn't used that method the code would look like this:

<body bgcolor="#FFFFFF" text="#000000" background="beige.gif" link="#000099" vlink="#000099" alink="#000099">

 

 

 

 

 

Top of Page

 

 

 

Page built in 0.0007 seconds