WebworkImages in HTML Documents

Images are easily added to HTML documents. Although any image anywhere on the entire Internet could be added to any web page anywhere else on the net, usually the web page author stores the images he or she intends to use in the same directory as the HTML document.

To add an image, use the image source tag:

<img src=

add the URL pointing to the image:

"red_spiral.gif"

an alternative line of text for non-graphic browsers:

alt="Red Spiral Image"
(Alt tags can contain upper case characters and spaces - actual file names should not.)

and the image dimensions:

width="26" height="27"

Then close the image tag:

>

The completed image reference in your HTML document would look like this:

<img src="red_spiral.gif" alt="Red Spiral Image" width="26" height="27">

And onscreen it would look like this:

Red Spiral Image

 

The URL (in quotes) in this example is simply the name of the image itself. If the image were located in a subdirectory within the directory that contains the HTML document, the directory path would be given:

<img src="images/red_spiral.gif">

(Web designers frequently put all images in an "image" subdirectory to help organize a web site's files.)

If the image was located on a completely different machine, the full URL (address and path) would be given:

<img src="http://computer.somewhere.com/images/red_spiral.gif">

(Note: It's rude and often illegal to link to an image on someone else's web site without obtaining permission.)


Images can contain meaningful content or be used solely for decoration. In either case, their use should be weighed against the amount of time that they slow the downloading of the page. Web viewers are about as patient as TV remote-control users on speed - if a page does not load fast, they are gone.

Web page authors frequently use small, quick-downloading, accent graphics (bullets and horizontal rules) to enhance their pages. If this is done, it's recommended that the same graphic be re-used throughout the document. This is both because the browser only has to download it the first time so page-load time is kept short and because repeating the same element adds visual continuity to the page.

At the present time, GIF (Graphical Interchange Format) and JPEG (Joint Photographic Experts Group) are the image types supported by most web browsers so images should be converted to one of these formats for web use.

Shameless plug: there is a large collection of icon-sized GIFs and horizontal rules for web page use at re-vision.com.

 

Other sources of free or inexpensive web clip art:
Barry's Clip art Server The Mining Company


<Previous | Webwork Table of Contents | Next>
 
 © Jay Boersma
free stuff
GIFs 4 Us
The Web Rules
Webpix
Backgrounds 4 Us
Webpaper
Digital Sketches 1
Digital Sketches 2
Fonts
Sounds
archive
The Portals Project
Transition
Insights
Spelling
Webwork
photographs
Barcelona, Catalonia/Spain
Along the Mississippi
Rome and Florence
The Reliance Building
Providence, Rhode Island
Santa Fe, New Mexico
Charleston, South Carolina
hell
The Web
Page from
ape silverback
Primate
Ruminations
rotmp
Revenge
of the
Movie
Poster
element-j
Honda
Element
Site