Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Attribute for <AREA ...>

Looking for info on how to make an image map?

See our tutorial How to Make an Image Map
COORDS indicates whare the shape is located in the image map. COORDS is necessary if you set SHAPE to RECT, CIRCLE, or POLY. COORDS is not required if you set SHAPE to DEFAULT.

Coordinates are always entered as a comma delimited string of numbers. That is, the stirng consists of a number, then a comma, then another number, then a comma, etc. Don�t put a comma after the last number. The exact meaning of those list of numbers is different for each shape, so see the descriptions of the values for the SHAPE attribute for details.

For example, the following code sets coordinates for a rectangle, circle, and polygon, and sets no coordinates for the default.


<MAP NAME="map1">
   HREF="contacts.html" ALT="Contacts" TITLE="Contacts"
   SHAPE=RECT COORDS="6,116,  97,184">

   HREF="products.html" ALT="Products" TITLE="Products"
   SHAPE=CIRCLE COORDS="251,143,  47">

   HREF="new.html" ALT="New!" TITLE="New!"
   SHAPE=POLY COORDS="150,217, 190,257,  150,297,  110,257">

<AREA HREF="default.html" SHAPE=DEFAULT>


<IMG SRC="testmap.gif" 
   ALT="map of GH site" BORDER=0 WIDTH=300 HEIGHT=300

which gives us

Contacts Products New! map of GH site

  Copyright 1997-2002 Idocs inc. Published under the terms of the Open Content License Design by Interspire