Canddi

Dreamweaver: Creating Image Maps

An image map lets different parts of one image link to different destinations. In Dreamweaver, these clickable regions are called hotspots. This tutorial shows how to create a circular hotspot around an object in a photograph, then check that the link works.

Prepare your image and HTML page

Create and save an HTML document in your local site. Choose a photograph you own or have permission to use, with a clearly defined object such as a golf ball. Keep the image in your site folder so it can be uploaded with the page.

Insert it using Insert > Image. Switch to Design view and open Window > Properties. The hotspot tools are used in Design view; do not look for them in Live view.

Create a circular hotspot

  1. Select the image. Expand the Property inspector if its lower controls are hidden, and give the image map a unique name in the Map field.
  2. Choose the circle hotspot tool and drag over the object you want to make clickable. A rectangle or polygon is more suitable for other shapes.
  3. Use the pointer hotspot tool to select and reposition the region if necessary. Adjust its handles until it follows the intended clickable area.
  4. With the hotspot selected, enter the destination in the Link field. For a practice page, link to another HTML file in your local site so you can test both files together.
  5. Complete the hotspot’s Alt field with meaningful link text. For a link to a product description, for example, use “View golf ball details” rather than merely “Golf ball”.
  6. Save the HTML document and open it in a browser. Click the hotspot and confirm that the intended page opens. Check outside the hotspot too: that area should not activate this link.

Leaving the target at its default keeps navigation in the same frame or window. Use _blank only when opening another tab or window is intentional, and make that behaviour clear to visitors.

Make the links usable beyond a mouse

Give the image an overall text alternative and each linked hotspot its own destination or action text. Add ordinary text links alongside the image so visitors can reach the same destinations without locating a small region.

Test keyboard navigation, visible focus and touch input. Check the map at the actual image sizes used on your page: resizing an image can leave coordinate-based hotspots misaligned. If you cannot keep the regions accurate at mobile sizes, use a straightforward list of links instead.

See Adobe’s image-map controls and W3C’s accessible image-map guidance for further reference.

Build your web design skills

Want help choosing training for HTML, page layout or web design? Talk to Academy Class about your learning goals.