|
|
||||||||||||
|
|
HTML | Background Tiling |
|
|
|
||||||||
|
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 an image and uses it to cover the background of a page by repeating the image as many times a required. Any text and images displayed on that page then appear against this tiled background.
Here is an example of a 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.
Obtaining an Image
Save the image that is displayed in your folder under the default name
(a051.jpg).
Tiling Your Homepage Background
Edit this line to insert the text BACKGROUND="a051.jpg" immediately after <BODY so that the line reads
Notice that the case does not matter for the HTML itself (so background= or BACKGROUND=, or even BaCkGrOuNd= are 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 you just
downloaded.
Experimenting on Your Own
|
||||||||||||
|
|
||||||||||||