IMG ALT Attribute

The ALT attribute of the IMG tag allows you to specify text that should be displayed if the reader's browser doesn't support in-line images. For example:

<IMG SRC="ausflag.gif" ALT="[AUSFLAG]">

Would display the image stored in ausflag.gif or the text:

[AUSFLAG]

if the reader's browser does not support in-line images.

Many browsers that don't support in-line images will display a link to the image so that the reader can download the image for viewing on another device.

Sometimes, you might not want anything displayed if the readers's browser doesn't support in-line images. For example:

<IMG SRC="ausflag.gif" ALT="">

Would not display anything at all if the reader is using a browser that doesn't support in-line images.

What about external images?


go_back.gif (279 bytes)[HTML]go_more.gif (275 bytes)go_down.gif (256 bytes)

Revised: Friday, 23 July 1999 by EIE WebMistress