The ismap attribute marks an <img> as a server-side image map. The image must sit inside an <a href>. When the user clicks, the browser appends ?x,y (CSS pixels from the image’s top-left) to the link URL so the server can choose the destination.
Regions are not defined in HTML with ismap. For clickable areas in the page itself, use usemap with <map> and <area> instead.
Baseline · Widely available.
Not deprecated and not experimental. Supported everywhere <img> works. Still valid HTML — but rarely the best choice for new UIs.
Accessibility warning.
Server-side maps need a pointing device. Prefer a client-side map (usemap) or plain text links so keyboard and assistive tech users are not left out.
Syntax
HTML Syntax
syntax.html
<a href="url"><img src="..." alt="..." ismap></a>
Boolean form: write ismap (or ismap="ismap"). The parent <a> must have a valid href.
Values
Attribute Values
ismap is a boolean attribute — presence turns the feature on:
Value
Description
Try it
ismap (present)
Server-side map on: click sends ?x,y to the anchor URL
Start without ismap. Clicks follow the link like a normal image link.
Set img.isMap = true. Same effect as adding the attribute in HTML.
Keep the parent <a>. Without a valid href ancestor, server-side map behavior does not apply.
Use sparingly. Prefer static HTML for maps; JS toggling is mainly for demos and legacy UIs.
Edge Cases & Pitfalls
Most mistakes are missing the parent link, confusing usemap, or ignoring accessibility.
scope
Must be inside <a href>
MDN: ismap is allowed only if the image is a descendant of an anchor with a valid href. Alone on an <img>, it does nothing useful.
a11y
Pointer-only interaction
Meaningful regions need a mouse or touch. Offer text links or a client-side map with alt on each <area>.
compare
Not the same as usemap
ismap = server gets ?x,y. usemap = browser uses <map> / <area> in the document.
coords
CSS pixels from the top-left
Coordinates are relative to the image box, not the viewport. Scaling the image still reports CSS-pixel offsets for the click.
forms
Do not confuse with input type="image"
An image submit button also sends x/y with the form. That is a different control — not the ismap attribute.
Compatibility
Browser Support
ismap is an HTML attribute on images in the browser. It is not a Node.js, Deno, or Bun API.
✓ Baseline · Widely available
ismap
Supported in all major browsers for decades as part of HTML image maps. Safe to rely on when reading legacy pages; prefer usemap for new designs.
98%Global support (approx.)
Google ChromeAll
Full support
Mozilla FirefoxAll
Full support
Apple SafariAll
Full support
Microsoft EdgeAll
Full support
OperaAll
Full support
Samsung InternetAll
Full support
Internet ExplorerAll
Full support
ismapWidely supported
Bottom line: Universal support. The hard part is accessibility and server setup — not browser quirks.
Remember
Key Takeaways
Role: send click x,y to the server from an image link (server-side map).
Structure:<a href><img … ismap></a> only.
Boolean: presence enables it; JS uses isMap.
Modern default: use usemap + <map> / <area> for new maps.
One line:ismap appends ?x,y to the link — the server, not HTML, owns the regions.
Frequently Asked Questions
On an img inside an a element with href, ismap makes a server-side image map. A click appends ?x,y (CSS pixels from the image’s top-left) to the link URL so the server can decide the destination.
Only img, and only when that image is a descendant of an a element with a valid href. Outside a link, ismap has no effect.
Yes. Presence means true (write ismap or ismap="ismap"). There is no other meaningful value. In JavaScript use the isMap property.
ismap sends click coordinates to the server. usemap points to a map element with area regions defined in HTML (client-side). Prefer usemap for new work.
Server-side maps need a pointing device to pick coordinates. Keyboard and many assistive setups cannot choose a meaningful x,y. Client-side maps with area alt text are easier to make accessible.
The browser takes the anchor’s href and appends ?x,y — for example /cgi-bin/map?10,27 if the user clicked at (10, 27).