Once the image is in your web directory, you can use HTML tags to insert the image at a specific point in your document.
Most introductory HTML pages have that information. In particular, I'd recommend (these links take you directly to the discussion on images):
The basic format is:
<img src="URL">where URL is the location of the image you want to display. If the image, called image.gif is in the same directory as your web page, you can use a relative URL as in the following HTML code:
Note that if your web files and images reside on a server where the filenames are case sensitive (such as a unix server), you'll need to be sure you use uppercase and lowercase filenames appropriately. That means there's a difference between "IMAGE.GIF" and "image.gif". Filenames are usually (but not always) lowercase, so if you've typed the filename as all uppercase, and the image is not loading, that may be why.
If the image is in a subdirectory called, for example, images, use:
I always use an alt attribute with my image statements. That means that text browsers won't try to display the image. It also allows you to describe the image for text browers. Some graphical browsers like IE will display the text when you hover over the image with your mouse. Examples using the alt attribute:
<img src="URL" alt=""> <img src="URL" alt="Photo of my family">
There are many other options you can use with this tag. They are described very well in the above documents, so I won't repeat that information here.
More about specifying and modifying image size using HTML tags is available in the section on creating thumbnail images.
© 2004 by Aphids Communications, L.L.C., all rights reserved. Text, graphics, and HTML code are protected by US and International Copyright Laws, and may not be copied, reprinted, published, translated, hosted, or otherwise distributed by any means without explicit permission of the copyright owner. Aphids and Aphids Communications are trademarks of Aphids Communications, L.L.C.