USEMAP indicates that the image is an image map and uses the map definition named by this attribute.
The name of the map is set by the
NAME attribute of the
<MAP ...> tag. Note that
USEMAP requires that you precede the name of the map with a hash symbol
#). For example, the following code creates an image map named
HREF="contacts.html" ALT="Contacts" TITLE="Contacts"
HREF="products.html" ALT="Products" TITLE="Products"
HREF="new.html" ALT="New!" TITLE="New!"
SHAPE=POLY COORDS="150,217, 190,257, 150,297,110,257">
ALT="map of GH site" BORDER=0 WIDTH=300 HEIGHT=300
[ <A HREF="contacts.html" ALT="Contacts">Contacts</A> ]
[ <A HREF="products.html" ALT="Products">Products</A> ]
[ <A HREF="new.html" ALT="New!">New!</A> ]
which gives us this map:
Theoretically you can reference a map definition that is in an external file, but several browsers have problems with that contruct so it's best to stick to putting maps and map definitions in the same page.
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of
the Open Content License and the Open Publication License.
Contents may be redistributed or republished freely under these terms so long as credit to the original creator and
contributors is maintained.