Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Using Graphics : Page 3

Just having a collection of Web-ready graphics is a good start. Now you have to learn how to use them effectively on your Web pages.


advertisement

Background Images

You can use an image as the background of an entire Web page.

To use an image as a page background of a Web page, add the "background" attribute to your page's body tag, like this:



<body background="imageURL">

The background attribute's value is the URL of the image you want to use for the page background. If this image is not large enough to fill the entire page, it automatically tiles (repeats) to do so.

Don't go overboard with your background images! Remember that people have to read the text and see the other information that appears on top of it.

background sample Here's an example of a page background that uses the background well—see how it adds a little flavor without getting in the way.
background sample Here's an example of a page background that uses the background poorly. The image was nice, but not the right choice for a background.

Check out the HTML Basics: Backgrounds and Colors tutorial for more information on adding background images and colors.



Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date