62
HTML <map> tag
HTML <map> tag is used with <area> tag to define a client-side image map.
An image map is consist of an image with clickable areas, where you can click on the image, and it will open to new or the provided destination.
The <map> tag can consist of more than one <area> elements which define the coordinates and type of the area.
With the help of <map> tag, you can easily link any part of the image to other documents, without dividing the image.
Syntax
Following are some specifications about the HTML <map> tag
Display | None |
Start tag/End tag | Empty Tag(Only Start tag) |
Usage | Image map |
Example
Attribute:
Tag-specific attributes:
Attribute | Value | Description |
---|---|---|
name | mapname | It defines the name of the image-map. |
Global attribute:
The <map> tag supports the global attributes in HTML
Event attribute:
The <map> tag supports the event attributes in HTML.
Supporting Browsers
Element | Chrome | IE | Firefox | Opera | Safari |
<map> | Yes | Yes | Yes | Yes | Yes |
Next TopicHTML mark Tag