Idocs Guide to HTML

Attribute for <BODY ...>
BACKGROUND = "image URL"

Usage Recommendation
use it, but don't rely on it

BACKGROUND sets a picture to use as the background for a page. For example, to use this paper-like image as the background for a page:

a picture of paper to use as a background

we use this <BODY ...> tag:

this code produces this
<BODY 
    BACKGROUND="paper.gif"
    BGCOLOR="#FFFFFF"
    TEXT="#000000"
    LINK="#0000FF"
    VLINK="#FF66FF"
    ALINK="#FF0000"
    >
this page

Notice that we set all color properties for the page. If you set one color, set them all, which leads to our next topic: Avoid the Most Common Mistake Made with BACKGROUND.

Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.