WebHints: Images

Image Formats Supported

Currently, WWW browsers are guaranteed to support only the following image formats:

However, in practice, the two formats that are almost universally used are GIF and JPEG. GIF is good for drawings. JPEG is good for photographs.

Including An Image

Here's how to include an image:

<IMG SRC="filename.gif">

Images are included as if they were large letters or words and can be aligned with the top, bottom (the default), or middle of the text, or at the left or right of a page.

<IMG SRC="filename.gif" ALIGN="top">
<IMG SRC="filename.gif" ALIGN="middle">
<IMG SRC="filename.gif" ALIGN="bottom">
<IMG SRC="filename.gif" ALIGN="left">
<IMG SRC="filename.gif" ALIGN="right">
ALT Attribute: All images should include an ALT attribute that can be displayed by non-graphical browsers such as LYNX to indicate what the image is. This is especially important if the pictures are being used as buttons. The square brackets are a convention, not a requirement.
<IMG SRC="giraffe.gif" ALT="[Picture of giraffe]">

As it can take a long time to upload large images, you should always label large images with the format and size of the image. This applies to other large objects too. Thumbnail sketches (small versions of images) can be used to give the user an idea of what the larger image will look like.


* * Webmaster: ross@ross.net
Linkhere: Click here to find out how to link here.
Copyright: Copyright © Ross N. Williams 1995-1996. All rights reserved.