Name
<area> — NN: 2, 3, 4 • MSIE: 2, 3, 4, 5 • HTML 4 • WebTV • Opera3
Synopsis
<area>
The area tag is used within the <map> tag of
a client-side imagemap to define a specific “hot”
(clickable) area.
Attributes
coords=valuesSpecifies a list of comma-separated pixel coordinates that define a “hot” area of an imagemap. The specific syntax for the coordinates varies by shape as follows:
- Rectangles
If
shape=rectorrectangle, use the coordinatesx1,y1,x2,y2,wherex1,y1are the coordinates for the point at the top, left corner andx2,y2are the coordinates for the bottom, right corner.- Circles
If
shape=circorcircle, use the coordinatesx,y,r, wherexandyare the coordinates of the centerpoint, andris the length of the radius.- Polygons
If
shape=poly, use the coordinatesx1,y1,x2,y2, x3,y3,...,where the values are sets ofx,ycoordinates for points around the path that surrounds the area.
href=urlSpecifies the URL for a specific area.
nohrefDefines a “mouse-sensitive” area in an imagemap for which there is no action when the user clicks in the area.
shape=rect|rectangle|circ|circle|poly|polygonDefines the shape of the clickable area. The shape name must be accompanied by the appropriate set of coordinates (see syntax under
coordsattribute above).
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access