Open links in new tab
  1. HTML Image Maps - W3Schools

    • Learn how to create clickable areas on an image using HTML tags and attributes. See examples of rectangular, circular, polygonal and JavaScript areas, and try them yourself.… See more

    Shape

    You must define the shape of the clickable area, and you can choose one of these values: 1. rect- defines a rectangular region 2. circle- defines a circular region 3. poly- defines a polygonal region 4. default- defines the entire region You must also define some coordinates to be able to place the clickable area onto the image.

    W3School
    Shape="rect"

    The coordinates for shape="rect"come in pairs, one for the x-axis and one for the y-axis. So, the coordinates 34,44is located 34 pixels from the left margin and 44 pixels from the top: The coordinates 270,350is located 270 pixels from the left margin and 350 pixels from the top: Now we have enough data to create a clickable rectangular area: This i...

    W3School
  1. Image mapping allows you to create clickable areas on an image, enabling different actions depending on where the user clicks. This is achieved using HTML and CSS.

    Creating an Image Map

    To create an image map, you need an image and some HTML code that describes the clickable areas. The HTML <map> tag defines the image map, and the <area> tags define the clickable areas within the image.

    Example

    Here is an example of an image map:

    <img src="workplace.jpg" alt="Workplace" usemap="#workmap">
    <map name="workmap">
    <area shape="rect" coords="34,44,270,350" alt="Computer" href="computer.htm">
    <area shape="rect" coords="290,172,333,250" alt="Phone" href="phone.htm">
    <area shape="circle" coords="337,300,44" alt="Coffee" href="coffee.htm">
    </map>
    Copied!

    In this example:

    • The <img> tag includes the usemap attribute, which links the image to the image map.

    • The <map> tag has a name attribute that matches the usemap value.

    • The <area> tags define the clickable areas with their shapes and coordinates.

    Feedback
  2. How to create an image map in JavaScript

    Jul 23, 2025 · Approach: Below is the step-by-step implementation of How to create an image map in JavaScript. Step 1: The first step is to insert an image using the …

  3. JavaScript - Image Map - Online Tutorials Library

    You can use JavaScript to create client-side image map. Client-side image maps are enabled by the usemap attribute for the <img /> tag and defined by special <map> and <area> extension tags.

  4. Dynamically resizing Image-maps and images - Stack …

    Nov 10, 2012 · 43 I'm currently trying to make an Image-Map on my site that will …

    • Reviews: 3
    • JavaScript — Image Map. Image map is a concept where we can map…

      Jun 24, 2023 · Image maps are a powerful concept that allows us to define specific areas within an image and associate them with certain actions or functionalities. The implementation of image maps...

    • A Guide to creating an Image Map using JavaScript - Hyno

      Jun 22, 2023 · Learn how to use JavaScript to enhance the functionality and interactivity of image maps. Follow the step-by-step guide to set up the HTML …

    • People also ask
      Loading
      Unable to load answer
    • JavaScript Image Maps - w3schools.sinsixx.com

      From our HTML tutorial we have learned that an image-map is an image with clickable regions. Normally, each region has an associated hyperlink. Clicking on one of the regions takes you to the …

    • JavaScript - Image Map: Unleashing Interactive Web Design

      Image maps allow developers to define clickable areas within an image, enabling various actions to occur when these areas are interacted with. This blog post will delve deep into the world of JavaScript …

    • How to create an image map in JavaScript? - Tpoint Tech

      Mar 17, 2025 · JavaScript can be used to create a client-side image map. An image map is an image on the webpage that has multiple links to other pages.

    • JavaScript - Image Map - eVidhya

      An image map in JavaScript is a type of image that has multiple clickable areas, also known as "hot spots", each of which can be linked to a different web page or URL. Image maps are created by …