This is an ad.
 
Webmonkey Kids
Webmonkey Kids
Lessons
Projects
Playground
Tools

Background Color
Background Images
Font Color
Font Size
Headlines



Parents and Teachers:
Find out how your kids can use Webmonkey for Kids as a learning tool at home or in the classroom with our Planning Guide.

Send us feedback

Lesson D: Changing Your Page
Background Images


<body background="imagename.gif"> sets the background image

This tag lets you put an image in the background of your Web page. A big image might appear only once (depending on the size of the browser window), but smaller images will be redrawn as many times as necessary to fill a page - a process known as "tiling." Here's an example of tiling on a page at Hits.org. Notice that the field of flowers in the background is just one little square repeated all over the place. Be warned: You can make your pages really ugly by using tiling.

If you write this in your HTML document:

<body background="monkey.gif">

... then that monkey picture will appear in your background as many times as the browser window and the size of your image will allow.

Back

Next Page