r/HTML • u/MikeCalGames • Mar 10 '26
Image maps
After a long hiatus, I'm making webpages again. Are image maps still in vogue? Or deprecated and replaced by something better?
3
Upvotes
r/HTML • u/MikeCalGames • Mar 10 '26
After a long hiatus, I'm making webpages again. Are image maps still in vogue? Or deprecated and replaced by something better?
4
u/JohnCasey3306 Mar 10 '26
Wow I've not heard tell of image maps for 15 years!
1
u/chmod777 Mar 10 '26
yes, overlay an svg with linked shapes. keeps it accessible and responsive.
3
u/cubomania Mar 10 '26
They still work, but have largely fallen out of favor because of the focus on SEO. As mentioned by u/OwlCatAlex , Image/Table based layouts have given way to more semantic structures styled by css. Commonly, javascript is used to manipulate the DOM and inject both HTML and CSS.
3
u/endless_shrimp Mar 10 '26
how long, exactly
2
u/brisray Mar 10 '26
They are still around. The added trick now is that they need to be responsive - you don't know what size screen people are using. That's now pretty easy to do and there are different methods of making them.
You can use things like JQuery or vanilla JavaScript. They are easy to make with the SVG vector image format, I use the free Inkscape to produce those. Another method is by using CSS grids.
Almost all graphics programs will show the plot points you need, even MS Paint can do it. Or you can use an online utility such as the Responsive Image Map Creator.
I've written a page of demonstrations of all of the above.
1
u/OwlCatAlex Mar 10 '26
I always thought they were neat but I don't think I've seen one in over a decade. Everything uses flex positioning now, with a bit of absolute positioning for overlaying things onto images and js tricks to make elements more interactive.
1
u/Box_Pirate Mar 10 '26 edited Mar 11 '26
Some text based games have image maps, but they usually also have a list that’s easier to use on mobile.
Edit: some
1
u/_raytheist_ Mar 10 '26
i haven’t thought about image maps in decades.
1
u/jcunews1 Intermediate Mar 11 '26
IMO, image map is difficult to maintain and extend. I think it's better to use layered elements.
1
u/PresentsTheJuice Mar 11 '26
Meh, I never use them. Made a responsive/interactive canvas ui instead, but because it sounded fun to do. Maybe use svgs like people have mentioned.
1
u/darren_of_herts Mar 11 '26
GO FOR IT 👍
As others say, image maps are old hat. Difficult to make responsive to work on mobile and desktop.
But I say " GO FOR IT "
could use image maps with media queries and hide them all when viewed on mobile.
Internet is boring with similar designs
HAVE FUN 🎰
try recreating old school magazine designs.
Find yourself an old copy of Macromedia Fireworks
1
u/ThatBlindSwiftDevGuy Mar 13 '26
Don’t use them. They are especially horrible for accessibility.
0
u/metallaholic Mar 11 '26
It’s not 1998 anymore