Skip to content

Instantly share code, notes, and snippets.

@codingwithsara
Created September 21, 2020 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codingwithsara/079980a50e90f2388935b9cadb882160 to your computer and use it in GitHub Desktop.
Save codingwithsara/079980a50e90f2388935b9cadb882160 to your computer and use it in GitHub Desktop.
How to Create Image Map in HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>ImageMap Sample</title>
</head>
<body>
<map name="sample">
<area shape="rect" coords="175, 70, 290, 220" href="picture.html" alt="Picture">
<area shape="circle" coords="100, 214, 30" href="leaf.html" alt="Leaf">
<area shape="poly" coords="50, 340, 75, 354, 75, 385, 50, 400, 25, 385, 25, 354" href="plant.html" alt="Plant">
</map>
<img usemap="#sample" src="sample.jpg" alt="Image">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment