Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are image maps <map> deprecated?

Tags:

Are image maps deprecated in (x)HTML?

like image 260
Steven Avatar asked Aug 20 '10 06:08

Steven


People also ask

Are image maps still used?

The bottom line is that if you want or need to use an image map, they are still a part of the standard, and they do have valid uses. Just try to make them as accessible and easy to use as you can.

Are HTML image maps responsive?

Image maps, however, are not natively responsive. That means that if the image scale needs adjustments due to a browser's window being resized or the page being viewed on a mobile device, the image map and its clickable area will not scale down with the screen size.

Which types of image maps can be used?

Two types of image maps are client side and server side. Client side image maps provide multiple active regions through the browser and they can be made accessible relatively easily. Server side image maps require a mouse to be used and transfer click data to the server for processing.

What is the purpose of image mapping?

The intention of an image map is to provide an easy way of linking various parts of an image without dividing the image into separate image files.


2 Answers

It is in the HTML 5 draft spec.

It also appears in the XHTML strict DTD:

<!ELEMENT MAP - - ((%block;) | AREA)+ -- client-side image map --> 

In short - it is part of both specs and is not deprecated.

Some people do not like image maps because they perceive them as not very accessible or discoverable, and as such there are other markup/css/javascript techniques that work better.


The map element doesn't appear in the obsolete section of the HTML 5 spec either. In fact, several obsolete features have a recommendation to use image maps instead.

like image 173
Oded Avatar answered Oct 02 '22 08:10

Oded


For the record, it is also still part of XHTML1.1 Strict with one change

On the a and map elements, the name attribute has been removed in favor of the id attribute

In the now dead XHTML2 any element could have been an Image Map, effectively making a separate element for it superfluous, which is the reason it was no longer part of the specification.

like image 45
Gordon Avatar answered Oct 02 '22 08:10

Gordon