The IMG Tag
Learn how to insert an image on a Web page.

Holiday Animated Penguin

Use the IMG tag for inserting a graphics image on a Web page. The SRC attribute specifies the image source file.
<IMG SRC="imageName"
ALT="Description of image">

imageName  is URL of the image file.

  • You can link to an image file in another directory by specifying the relative path from the current document to the linked image. I encourage you to put your images in a separate directory from your HTML documents, e.g., ~/public_html/images
    <IMG SRC="images/dancingPenguin.gif"
    ALT="Dancing penguin with shades">
  • You can link to an image using an absolute path name.
    <IMG SRC="" ALT="Dancing penguin with shades">
The suffix of the file name should correspond to the type of image you are displaying.
The image name must end with .gif
X Bitmap
The image name must end with .xbm
The image name must end with .jpg or .jpeg
The image name must end with .png
The ALT attribute lets you specify text to be displayed instead of an image or if you move your mouse on top of the image in some browers.
<IMG SRC="imageName ALT="Description of graphic">

VA Linux Systems Logo

I would appreciate comments, corrections, and
suggestions for how I can improve this course.

Nancy Blachman
Variable Symbols, Inc.
356 Bush Street
Mountain View, CA 94041-1332
650 966 8999
650 966 8998 fax
nancy- at

If you want to learn how to search effectively using Google, visit Google Guide, which you can find at