Skip to content

<area> - The Image Map Area Element

Media Element HTML 2.0

The area element defines clickable regions within an image map. Each area element specifies a shape, coordinates, and destination link, creating interactive hotspots on images without requiring multiple image files or complex JavaScript.

Result
<area shape="rect" coords="x1,y1,x2,y2" href="link.html" alt="Description">

The <area> element is void (self-closing) and must be a child of a <map> element.

Defines the type of clickable region:

ShapeDescriptionCoordinates Format
rectRectanglex1,y1,x2,y2 (top-left, bottom-right)
circleCirclex,y,radius (center x, center y, radius)
polyPolygonx1,y1,x2,y2,x3,y3,... (each vertex)
defaultEntire imageNo coordinates needed
Result

Specifies the coordinates of the clickable region. Format depends on shape:

<!-- coords: x1,y1,x2,y2 -->
<!-- x1,y1 = top-left corner -->
<!-- x2,y2 = bottom-right corner -->
<area shape="rect" coords="10,10,200,100" href="#link" alt="Rectangle">

Example: coords="10,10,200,100" — Top-left corner: (10, 10), Bottom-right corner: (200, 100), Width: 190 pixels, Height: 90 pixels.

Destination URL when the area is clicked:

Result

Alternative text describing the area for accessibility:

<!-- Descriptive -->
<area shape="rect" coords="0,0,100,50"
href="/products" alt="Go to Products page">
<!-- Action-oriented -->
<area shape="circle" coords="200,200,50"
href="#signup" alt="Sign up for newsletter">
<!-- Context-aware -->
<area shape="poly" coords="50,0,100,50,0,50"
href="/downloads" alt="Download software">
<!-- Empty for decorative -->
<area shape="rect" coords="300,0,400,50"
href="#" alt="">
AttributeRequiredDescriptionExample
shapeNoShape typerect, circle, poly, default
coordsFor most shapesRegion coordinates"10,10,200,100"
hrefNoLink destination"page.html", "#anchor", "mailto:"
altYesAlternative text"Navigate to Products"
targetNoWhere to open link_blank, _self, _parent, _top
downloadNoDownload file instead of navigatingdownload or download="filename.pdf"
relNoRelationship to targetnoopener, noreferrer, nofollow
pingNoURLs to ping when clickedSpace-separated URLs
referrerpolicyNoReferrer policyno-referrer, origin, etc.
Result
Result
Result
Result

Control where links open:

Result

Force file download instead of navigation:

Result
Result
<map name="nav-map">
<!-- Action-oriented, describes purpose -->
<area shape="rect" coords="0,0,100,40"
href="/products" alt="Browse our product catalog">
<!-- Indicates destination clearly -->
<area shape="rect" coords="120,0,220,40"
href="/support" alt="Get customer support">
<!-- Describes action and result -->
<area shape="rect" coords="240,0,340,40"
href="/login" alt="Log in to your account">
</map>

Area elements are focusable by default:

Result
Result
Result
Result
Result
FeatureChromeFirefoxSafariEdge
<area> element1+1+1+12+
shape attribute1+1+1+12+
coords attribute1+1+1+12+
href attribute1+1+1+12+
alt attribute1+1+1+12+
target attribute1+1+1+12+
download attribute14+20+10.1+13+
ping attribute12+6+17+
Result