Background Tiling
We now show how to use an image (in GIF or JPEG format) to "tile" the background of your homepage. By this, we mean that the browser takes a small image and uses it to cover the background of a page by repeating the image as many times as required. Any text and images displayed on that page then appear against this tiled background.
The page you are presently viewing is tiled with a subtle, off-white image that gives the appearance of bond paper. If you are using the frames version of the Tutorial, the frames surrounding the main frame give another example of tiling, this time with an image that gives the impression of blue sky. Here is an example of subtle tiling with a less subtle message. A well-chosen tiling for the background can greatly enhance the appearance of a page, but the downside is that tiled pages generally take longer for the browser to load. When using tiling, one should also pay attention to legibility issues. Although tiling the background with a loud color may attract attention, it may also make the text sitting on that background difficult to read.
Save the image that is displayed in your folder under the default name (a051.jpg).
<BODY BGCOLOR="#000030" TEXT="#ff0000" LINK="#00ffff" VLINK="#00ffff" ALINK="#FF0000">Edit this line to insert the text BACKGROUND="a051.jpg" immediately after <BODY so that the line reads
<BODY BACKGROUND="a051.jpg" BGCOLOR="#000030" TEXT="#ff0000" LINK="#00ffff" VLINK="#00ffff" ALINK="#FF0000">Notice that the case does not matter for the HTML itself (so background= or BACKGROUND=, or even BaCkGrOuNd= are all equivalent), but the files names may be case sensitive so a051.jpg should be typed exactly as written, in lower case. Save the changes in the file, and reload your homepage with the browser. You should now have a page with the background tiled by the image that you just downloaded.
Next
Back
Top
Home
Help