-
-
Save codingwithsara/079980a50e90f2388935b9cadb882160 to your computer and use it in GitHub Desktop.
How to Create Image Map in HTML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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