Producing web pages
* HTML CSS DHTML XHTML A to Z of tags        Accessibility          Design

Adding background colours and images

One of the most common things is to change the background colour of your page. If you don't set a colour, the page will probably have a white background. You could, for example, change it to black:

<body bgcolor="black">

Watch your colour combinations, there is a reason why most background colours are white or black.

Instead of making the background a different colour, you could add a background picture to the page. For example,

<body background="bkgimage.gif">

Lots of people give their page a background colour and a background picture. While the picture loads, you will will see a background colour:

<body bgcolor="#000000" background="bkimg.jpg">