|Appearance:||<AREA SHAPE=x HREF=
|May occur in:||MAP.
Inside the MAP tag, each "hotzone" in the client-side imagemap is defined with an AREA tag. The HREF attribute specifies the URL for the destination that should be chosen if this area was selected. If you specify NOHREF instead, this area won't do anything.
SHAPE and COORDS define the actual region. SHAPE can be a rectangle, circle, or polygon, and COORDS should contain a set of coordinates describing that shape. This is done with a comma separated list of numbers, enclosed in quotes. The syntax for COORDS depends on what shape you choose.
<AREA SHAPE=rect COORDS="0,0,9,9">would specify a rectangle of 10x10 pixels, starting in the top left corner of the image.
<AREA SHAPE=circle COORDS="10,10,5">would specify a circle with radius 5 at location (10,10) in the image.
<AREA SHAPE=poly COORDS="10,50,15,20,20,50">would specify a triangle, with edge locations (10,50), (15,20) and (20,50).
The ALT text is used by text browsers to present the URLs in the imagemap in a more readable fashion. If you leave those off, the browser can only display the "bare" URLs. The ALT text is required if you want your document to be valid.
Reference index ~ Wilbur index ~ Tag overview ~ Feedback
Copyright © 1997 Arnoud "Galactus" Engelfriet.