Easily Create Background Images for Your HTML Web Page

Creating Background Images for Your HTML Web Page

Now let’s look at adding a background image. You can use a color and an image, and in the case that the image doesn’t display for the user, or if it takes a long time to load, they will see the color instead (or while the image loads). Let’s find a tileable background through Google image search (keep in mind, for your web pages, you will want to find public domain or “free-to-use” images. Make sure you have permission to use the images that you put on your web site!).

Let’s go to Google:

HTML Background Image Google Search

We’ll click “Images” at the top to enter Image search. Type in “free tileable background” and hit Search Images.

HTML Background Image Google Search Result

You’ll get pages full of matches. Pick any one, in our case we’ll go with this one on page 3:

HTML Background Image Picking

On the next page, you want to click the “See full-size image” button, and immediately below you can see the page that this file appears on. You will notice it is in the blog’s header, so you can peak ahead of time.

HTML Background Image Full Size

On the next page, right click the image and select “Save Image As”:

Save HTML Background Image

And save the file to the location of your html file. You can rename it - in this case I renamed it “tiletest.png”. PNG, JPG, and GIF files are all fine for web graphics. If you get a BMP file, you should probably open it in Paint and save it as a JPG - BMPs take up lots of space and may have very slow load times. On the other hand, you can lose quality by converting. [Note: This image is probably not free for use - you must always check the rights on an image before using them. I am using this image for instructional purposes only.]

Now we want to set our background to use that image:

<HTML>

<HEAD><TITLE>Background Color</TITLE></HEAD>

<BODY bgcolor=”#0099CC” background=”tiletest.png”>

My background is pretty.

</BODY>

</HTML>

And we get:

HTML Background Color and Image

The mark of a good tile is that you can’t tell the beginning from the end. In this case, an excellent tile! Most of the time you will want to use blander images so as not to take attention away from your text and other graphics. Non-transparent images will also appear blocky when set on top of background images, so you will probably want to use tables to keep things looking nicely. We will get to tables later on.



If you like "Easily Create Background Images for Your HTML Web Page,"
please consider linking to this article:

2 Ping / Trackback

[…] Easily Create Background Images for Your HTML Web Page […]

[…] Easily Create Background Images for Your HTML Web Page […]

Leave a Reply




(spam protection)
Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Subscribe without commenting

« Previous
« Well Designed Headings To Improve Usability Of Website | Up Top | Website Design That Can Improve The Usability »
Recent Comments
e-orchids: very nice article thanks for posting….. E-orchids
Html Meta Tag: It’s an enormous advantage to have read your post. In fact, I learn a lot from it. It was certainly...
Medical Web Experts: Nice post!!! Really an amazing observation regarding the advantages of flash! Flash has been...
Web Tasarım: This is very nice post. thank you.
Web Design Development: Testing comment.