HTML Tags

HTML <area> Tag

The <area> tag defines clickable areas within an image map created by the <map> element.
Each <area> represents a region of the image that acts as a hyperlink to another page, section, or resource.

Syntax

<area shape="shapeType" coords="coordinates" href="URL" alt="description">

Attributes

AttributeDescription
shapeDefines the shape of the clickable area — can be rect, circle, or poly.
coordsSpecifies the coordinates of the clickable area (varies based on shape).
hrefThe URL or link the area points to when clicked.
altAlternate text describing the clickable area (for accessibility).
targetSpecifies where to open the linked document (_blank, _self, etc.).
downloadAllows the linked file to be downloaded instead of opened.
relDefines the relationship between the current document and the linked one.
titleProvides additional information (shows as a tooltip on hover).

Example

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Map Tag Example</title>
</head>
<body>

  <h2>Clickable Image Area</h2>
  <img src="/samples/html_map.jpg" 
       alt="World Map" 
       usemap="#worldmap">

  <map name="worldmap">
    <area shape="rect" coords="46,13,170,230" href="https://en.wikipedia.org/wiki/Rectangle" alt="Rectangle">
    <area shape="rect" coords="215,38,370,200" href="https://en.wikipedia.org/wiki/Square" alt="Square">
    <area shape="circle" coords="107,345,76" href="https://en.wikipedia.org/wiki/Circle" alt="Circle">
    <area shape="poly" coords="295,250,372,295,372,383,295,432,218,385,215,295" href="https://en.wikipedia.org/wiki/Hexagon" alt="Poly">
  </map>

</body>
</html>

Output

Browser Output

Displays an image of a world map with three clickable zones — rectangle, circle, and polygon.
Each zone links to a Wikipedia page about a continent.
Use our TryIt Editor to see the output.

Browser Support

Chrome
Chrome
Firefox
Firefox
Edge
Edge
Safari
Safari
Opera
Opera
IE
IE9+
✅Yes✅Yes✅Yes✅Yes✅Yes✅Yes

The <area> element is fully supported by all modern browsers including Internet Explorer 9+.

Notes

  • The <area> tag must be nested inside a <map> element.
  • The coords values depend on the defined shape:
  • rect: x1, y1, x2, y2
  • circle: x, y, radius
  • poly: multiple x,y pairs forming a polygon
  • You can use multiple <area> tags for different parts of the same image.
  • Always include alt text for accessibility and SEO.
  • Use percentage coordinates or JavaScript for responsive image maps.

Conclusion

The <area> tag makes sections of an image clickable, creating interactive and engaging content.
It’s an essential companion to <map> and is supported across all major browsers, making it reliable for web navigation and visual interfaces.

Sign In Form

User your email and password to singn in

Don’t have an account, signup here : 

HTML5 & CSS3

Tools and Tutorials

Want a Website

Want a website for your business ?

Please fill out the details below, so we can reach out to you.

Registration Form

Signup to track your record and much more.

We have sent you an email with a registration link. Please click the link to verify your email address, or enter the 6-digit OTP provided in the email.

Didn't receive the OTP. Regenerate OTP Resend