Skip to content

Instantly share code, notes, and snippets.

@codingwithsara

codingwithsara/index.html Secret

Created Sep 21, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.