Document Backgrounds

HTML 3.2 has added the ability to present graphical backgrounds for HTML documents. This is produced with the BODY attribute: BACKGROUND. Inside the BODY tag, add the attribute like this:

<BODY BACKGROUND="image.gif">

where image.gif is the name of the graphics file which is to form the document background. This can be any graphics format supported by the browser, but the most common are GIF and JPEG formats.

Images for backgrounds must be selected carefully. The browser will tile the image to fill the document window. Images which do not flow together when repeated beside, above and below itself, produce choppy backgrounds which are hard to look at for very long. In addition, large files take longer to download and may discourage visitors to your presentation.

As with this example, text colours must often be altered and many backgrounds prevent reading altogether. Once the colour of the text has been changed, consideration must be given to users with browsers which do not support backgrounds.

Home Page | Session 4 Index | List Types