In this article, we will create a client-side image map by using an <img> tag. The <img> tag is used to add images on a webpage. This tag is an empty tag which means it can contain only a list of attributes and it has no closing tag.
Syntax:
<img src="url" alt="some_text" usemap="#mapname">
Example:
<!DOCTYPE html> <html> <head> <title> Define a client-side image-map </title> </head> <body> <h2> HTML5: How to define a client-side image-map? </h2> <h4> Inserted image using <img> tag: </h4> <img src= alt="GeeksforGeeks logo"> </body> </html> |
chevron_right
filter_none
Output:

Supported Browsers:
- Google Chrome
- Internet Explorer
- Firefox
- Opera
- Safari
Recommended Posts:
- How to Create a Progress Bar using HTML5 ?
- How to Create Abbreviation of an Element using HTML5 ?
- How to create a table row using HTML5 ?
- How to create an ordered list using HTML5 ?
- How to create a caption for a figure element using HTML5 ?
- How to create table cell using HTML5 ?
- How to create an inline frame using HTML5 ?
- How to Create Navigation Links using HTML5 ?
- How to create a table by using HTML5 ?
- How to create a nofollow link using HTML5 ?
- How to create an area inside an image-map using HTML5 ?
- How to create a header cell in a table using HTML5 ?
- HTML5 | Video
- HTML5 | Audio
- How to change the font of HTML5 Canvas using a button in Angular.js?
- HTML5 Game Development | Infinitely Scrolling Background
- HTML5 | Mathematical operators
- HTML5 | MathML <menclose> Tag
- HTML5 | <footer> Tag
- HTML5 | Semantics
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
Improved By : arorakashish0911


