===============================================================

Displaying Images using HTML

Module W23i

* About this document... * Audience and Objectives *
 

If you are using a browser, you can click on this separator wherever you see it to return to the top of the page
===============================================================

Overview

Graphics - pictures and diagrams - are highly valued on Web pages because they add a rich sense of dimensionality to a page, and they can convey a lot of important information. No Web page looks complete without some images, either in the background to supply texture and character, or in the foreground to illustrate a point, decorate the page, or provide a fancy text that may not be available on the users' computers.

OK. So here's what we'll be doing:

  1. Open the Links page
  2. Put in a background image for texture
  3. Put in a WCC logo
  4. Open the Format Text page
  5. Put in a background image
  6. Put in separator lines
  7. Put in a text image
  8. Upload the files to the server and email the instructor with the URL.
===============================================================

Open the Links page; Put in a background image for texture

Use your copy (the one on your disk) of the Links page sitemap.htm which you did as part of exercise W23h "Creating HTML Links".

Choose a background image. You may find one you like on the Web, or you may use one of these:

In the Body tag of your file, add a background= parameter to set the background image to the name of the file you saved. For example,

<body background="purp_nob.gif">

Save your file and check it in a browser:

  1. Does the image appear as the background?
    If not, check the file name to make sure it and the parameter name background are spelled correctly and the file name has no capital letters. Also, check to make sure the file was saved in the same directory as the HTML file
  2. Can you read the text clearly?
    If not, edit the HTML file and change the color of the text in the Body tag.

===============================================================

Put in a WCC logo

Right below the line that says, "Web Site Organization for Sarah Strong" (but your own name should be in it, unless your name really is Sarah Strong) you should put an image of the WCC logo. Here are some to choose from:

 

===============================================================

Open the Format Text page; Put in a background image

Choose an image - either the same as for the Links page, or different. If you haven't already, save it in the same directory as your HTML file. Make it the background, save your file, and make sure your code is working properly. If necessary, change the color of the text.

===============================================================

Put in separator lines

Right under the line that says, "Sarah Strong's HTML Format Sampler" (with your own name in it, of course), put a separator line image.

Also, put a separator under the line that says, "This line is in Arial, Helvetica or sanserif font", put another separator line. It may e the same as the first one, or different.

Here are some separator lines to choose from; you may also look for lines on the Web:

 

 

===============================================================

Put in a text image

Find the place where the words read,

CLASSIC MYSTERY AND DETECTIVE STORIES EDITED BY JULIAN HAWTHORNE

Don't remove these, but make them the contents of the alt=" " parameter in an image tag for this image:

Save the image into the directory where your HTML file is located, and create the Img tag for it.

===============================================================

Upload the files to the server

... and email the instructor with the URL.


Audience: This is for people who are familiar with HTML formatting and linking, and want to put images in their files both as forground and background. This requires hav ing completed both exercise W22i and W23h.
Objectives: When you successfully complete this lesson, you will be able to...

About this document...
Module W23i: This document is part of a modular instruction series in computer technology. For more information, see the overview or the list of modules in this series, W: World Wide Web. This document has been used in the following classes: INP 165

Author: Laurence J. Krieg
Institution: Internet Professional Department, Washtenaw Community College

History: Original: June 2000; This revision posted  Monday, 31-Aug-2009 11:48:06 EDT

Copyright © 2000, Laurence J. Krieg, Washtenaw Community College
Instructors: You are welcome to point to this file in your Web-based materials.
Students: you may make a copy for your personal use.

All other uses: contact the author, Laurence J. Krieg for permission.