Using Images on Your Web Site


Inline Images

Here is an example of an inline image. It includes the alt attribute that gives a very detailed description of what the picture is. In a minute I will allow you to blow it up to have a better look.

A cool guy in Thailand riding his bike

Now, you can click on this picture to see it up close. Pretty cool huh?

A cool guy in Thailand riding his bike

GIF vs JPG vs PNG

GIFs are great for logos or images that are composed of mainly one color, but they are not the best for photographs. JPEGs, however, are the best option for photographs because they support more colors. A PNG in many ways is like both of the other files, but IE doesn't support it so it is rarely used.

One of the reasons why a GIF is the best for a logo is because of its transparency. JPEG has no transparency at all so it would usually just show an image as a box, whereas the GIF would show only what you would want it to. If only IE could support a PNG, because it can handle even more transparency levels than the GIF. As you can see I have been using JPEG for my images since they are photographs.

Photo Gallery

Here's a beginning photo gallery if you want to click on it.

My Gallery

Formatting the Picture with CSS

Here's an example with a black border around the picture.

A cool guy in Thailand riding his bike

This picture was taken in Thailand.

Basic Image Editing

Images should be small (72 to 92 pixels) and should not exceed 20 kb without the user actually clicking on a link to see a larger file. Crop, adjust, and edit all of your pictures to show exactly what you want the user to view. Also, source your images when needed.

Background Images

Just like a background color, images can also be used in the background and provide contrast with the rest of the web site. When choosing a background photo however, you need to be careful that the text is still plain and easy to read. From personal experience, background photos aren't my forte but they can be useful at times.

That's It

Images are crucial in a web site. It is one thing that I need to work with on mine. Viewers love to see images, they are not going to sit and read text all day long. We need to remember this as we our developing our web pages.



March 15, 2008 6:43 PM