|
Background |
| The background of your page is very important. It sets the tone for your site, and you know what they say about first impressions. |
|
|
Adding a background color
|
|
To change the color of the background, you include a BGCOLOR attribute to the BODY tag, specifying the color in hexadecimal code. |
| Here is an example: |
|
| The hexadecimal code "#ffffff" used in HTML to indicate colours. |
| This will give you a WHITE background. |
|
| Here are some examples of colour: |
| Name |
Hexadecimal Code |
Colour |
| Black |
#000000 |
 |
| White |
#FFFFFF |
 |
| Green |
#008000 |
 |
| Maroon |
#800000 |
 |
| Olive |
#808000 |
 |
| Navy |
#000080 |
 |
| Purple |
#800080 |
 |
| Gray |
#808080 |
 |
| Yellow |
#FFFF00 |
 |
| Lime |
#00FF00 |
 |
| Aqua |
#00FFFF |
 |
| Fuchsia |
#FF00FF |
 |
| Silver |
#C0C0C0 |
 |
| Red |
#FF0000 |
 |
| Blue |
#0000FF |
 |
| Teal |
#008080 |
 |
|
|
| Adding a background image |
| The code for adding a background image file is:
|
| <body background="filename.jpg">
|
|
|
| The background image will scroll when the user scrolls down the page. You can set the background to be fixed by adding bgproperties="fixed".
|
| It looks like this: |
| <body background="background1.jpg" bgproperties="fixed">
|
|
|