How to Create Image Maps in HTML? Last Updated : 26 Jul, 2025 Comments Improve Suggest changes Like Article Like Report Image maps in HTML5 allow you to make certain areas of an image clickable, leading users to different links or triggering specific actions. The clickable areas (also known as hotspots) are defined using the <area> tag, while the <map> tag is used to specify the map itself.What Is an Image Map?An image map is an image with clickable areas, defined by coordinates. When a user clicks on a defined section of the image, they are redirected to a URL, or an action is performed. This is useful for things like:Navigational menusInteractive infographicsClickable charts or diagramsSyntax:<map name="map-name"> <area shape="shape" coords="x1, y1, x2, y2" href="URL"></map>Attribute value:name: It is used to associate the map with the image in which it is used.Note: The name attribute in the map must have the same value as the image's usemap attribute.Example: Creating a Simple Image Map in HTML5Hereâs an example of creating a clickable image map where a specific area redirects to a website. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <img src="https://media.geeksforgeeks.org/wp-content/uploads/array-2.png" alt="gfgimage" usemap="#mapID"> <map name="mapID"> <area shape="rect" coords="34, 44, 270, 350" href=" https://www.geeksforgeeks.org/dsa/dsa-tutorial-learn-data-structures-and-algorithms/"> </map> </body> </html> Output: Comment More infoAdvertise with us M manishkrjha Follow Improve Article Tags : Web Technologies HTML HTML-Tags HTML-Questions Explore HTML BasicsHTML Introduction5 min readHTML Editors5 min readHTML Basics7 min readStructure & ElementsHTML Elements5 min readHTML Attributes8 min readHTML Headings4 min readHTML Paragraphs5 min readHTML Text Formatting4 min readHTML Block and Inline Elements3 min readHTML Charsets4 min readListsHTML Lists5 min readHTML Ordered Lists5 min readHTML Unordered Lists4 min readHTML Description Lists3 min readVisuals & MediaHTML Colors11 min readHTML Links Hyperlinks3 min readHTML Images7 min readHTML Favicon4 min readHTML Video4 min readLayouts & DesignsHTML Tables10 min readHTML Iframes4 min readHTML Layout4 min readHTML File Paths3 min readProjects & Advanced TopicsHTML Forms5 min readHTML5 Semantics6 min readHTML URL Encoding4 min readHTML Responsive Web Design11 min readTop 10 Projects For Beginners To Practice HTML and CSS Skills8 min readTutorial ReferencesHTML Tags - A to Z List15+ min readHTML Attributes Complete Reference8 min readHTML Global Attributes5 min readHTML5 Complete Reference8 min readHTML5 MathML Complete Reference3 min readHTML DOM Complete Reference15+ min readHTML DOM Audio/Video Complete Reference2 min readSVG Element Complete Reference5 min readSVG Attribute Complete Reference8 min readSVG Property Complete Reference7 min readHTML Canvas Complete Reference4 min read Like