HTML SHAPE = POLY

Looking for info on how to make an image map? - See our tutorial How to Make an image Map

SHAPE=POLY indicates that the area is some type of polygon (i.e. a geometric shape consisting of s straight sides). For a polygon, each pair of coordinates in COORDS indicates a single corner of the polygon. The browser figures the shape by "connecting the dots" from one corner to the next.

For example, suppose the corners of the polygon are located at these coordinates:

  • 150,217
  • 190,257
  • 150,297
  • 110,257

... as shown in this diagram:

test map polygon

We would set the coordinates with code like this:

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

which gives us the diamond shape in this map:

Contacts Products New! map of GH site

SHAPE=DEFAULT >