Live data from Hacker News

Cool HTML elements nobody uses

tapajyoti-bose.medium.com

1–10 of 111 posts

Re: Cool HTML elements nobody uses

#4

> 4. map & area These take me back, but I'm trying to remember why I stopped using them. Did they go out of fashion? Or was it accessibility related?

I think they went out of style because they weren't javascript. But many older websites still use them to create fast loading, universally supported, interactive data visualizations that JS would still struggle to match. One of my favorites is the dynamic space weather visualization from Lockheed Martin Solar and Astrophysics Laboratory, https://www.lmsal.com/solarsoft/latest_events/

Re: Cool HTML elements nobody uses

#6

> 4. map & area These take me back, but I'm trying to remember why I stopped using them. Did they go out of fashion? Or was it accessibility related?

Same. I remember using this feature extensively way back when. But I can’t remember when I stopped using it and what replaced it. Hmm, now that I think about it, this was in the days before we started using Flash. But after the Flash era we didn’t go back to using map.

Re: Cool HTML elements nobody uses

#7
I am old enough to remember development when image maps were still common for things like headers and big hero homepage navigation images.

I'd like to add which acts like an img tag and submit button that submits the clicked X and Y essentially as two separate inputs

Here's an MDN example showing X and Y position in GET string on click.

- https://mdn.github.io/learning-area/html/forms/image-type-ex...

Re: Cool HTML elements nobody uses

#9

> 4. map & area These take me back, but I'm trying to remember why I stopped using them. Did they go out of fashion? Or was it accessibility related?

I was thinking of this just a few weeks ago! When I made my first webpage in school (about 20 years ago) I used a sitemap made out of an image with map. I was thinking back to it and wondering whatever happened to that element.

Re: Cool HTML elements nobody uses

#10

> 4. map & area These take me back, but I'm trying to remember why I stopped using them. Did they go out of fashion? Or was it accessibility related?

You can still use them, but you need JavaScript calculations to make sure the map still works when the image shrinks. Not a big deal to be honest.
Post reply on HN