|
Images, whether artwork or photographs, certainly can add to the visual appeal of a website. Of course, their presence should not be overdone and should complement, not take away from the content. It is important to ensure that you indeed have either legal ownership or the permission of the author for any image that you place on your site. It is also important to consider the size and the format of any image that you wish to place on your website. Excessively large images (in byte count) will load slowly and potentially cause your site to lose impatient visitors or those with a slow modem Internet connection. Generally, there are four file formats currently in general use for presenting still images on the Internet.
In addition to embedding images into your pages, you may want to specify a background image for your entire page if it is tasteful and not hard on the eyes. We have all seen examples of web page background colors and or images which detract from the other content on the page, often making the text unreadable. If you are using a background image for your site, normally it will be a .gif file though a small bitmap (.bmp) file may also be used. These pages use a very subtle .gif as the background, which consists of thin blue lines intersecting to create white squares. Images
are specified in HTML using the Enjoy the images below which will demonstrate some points to consider when using graphics on your pages. |
|
|
|
|
Next,
we will use a |
|
science.gif |
science.jpg |
This
time our .gif
file was
aligned to the right with no border. If you look closely,
you will notice that the .gif
file lacks the clarity of its
.jpg counterpart which appears
to the right. Therefore,
.gif files
are suitable for some purposes but not others. It is up to you as
the page designer to be the judge. The
HTML code for the
.gif
image appears below.
|
|
|
<img border="0"
src="images/science.gif"
width="187"
height="198" |
|
|
I wish to reinforce the importance of properly sizing your images for your page area. Below are two copies of the same image (I believe that is the "tubes" in London). If you right click on the image itself on the left, you will see first that it is 57k in size. If you right click on the image on the right, it is only 13k in size. Yet they look almost the same.
In the case of travel1.jpg, I placed
that big image on the page and found that it was far too large for my
limited area below. So what did I do? I changed the "As of July 2003, most users in the US connect to the Internet using dial-up modems of 56Kbps or less. 51% use 56Kbps modems, 8.2% use 28/33.3Kbps, and 3% use 14.4Kbps modems. In total, 62.2% of home users in the US connect to the Internet at 56Kbps or less." Thanks to websiteoptimization.com Now with travel2.jpg, we did the right thing. Realizing that the picture would be too big for our needs here, I took it into Microsoft® Paint, went to Image|Stretch/Skew and reduced its height and width to 50% there. Now it is the right size for the browser when downloaded from the site and is less than 1/4 of the size of travel1.jpg. |
|
travel1.jpg |
travel2.jpg |
![]() |
![]() |
Backgrounds |
|
Finally,
we will consider the HTML syntax when using an image file as a
background for our page (or in a table as we will learn later). It's
actually very simple. At the start of the
<body> tag,
insert your background image location as so: This was the name of the clip art file that I chose for the background of these pages. |
|
Email: |
raykelly@rakelly.com |