Done with Map

This commit is contained in:
Tapas Adhikary 2020-08-13 18:28:52 +05:30
parent 26a8442032
commit 15f2850fb1
12 changed files with 112 additions and 0 deletions

View file

@ -44,6 +44,10 @@
<a href='./range/index.html'>
Slider</a> - Do you need a range slider?
</li>
<li>
<a href='./map/index.html'>
Map</a> - Image map with coordinates
</li>
</ul>
</div>
</body>

BIN
map/circus.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

20
map/clown.htm Normal file
View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>HTML Tips and Tricks - Map</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='../main.css'>
</head>
<body>
<div class="demo">
<h2> You have selected a Clown </h2>
<div>
<img src="clown.jpg" alt="clown" />
</div>
</div>
</body>
</html>

BIN
map/clown.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

20
map/elephant.htm Normal file
View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>HTML Tips and Tricks - Map</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='../main.css'>
</head>
<body>
<div class="demo">
<h2> You have selected an Elephant </h2>
<div>
<img src="elephant.jpg" alt="elephant" />
</div>
</div>
</body>
</html>

BIN
map/elephant.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 MiB

20
map/horse.htm Normal file
View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>HTML Tips and Tricks - Map</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='../main.css'>
</head>
<body>
<div class="demo">
<h2> You have selected a Horse </h2>
<div>
<img src="horse.jpg" alt="horse" />
</div>
</div>
</body>
</html>

BIN
map/horse.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

28
map/index.html Normal file
View file

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>HTML Tips and Tricks - Map</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='../main.css'>
</head>
<body>
<div class="demo">
<h2> Map - Image map </h2>
<div>
<img src="circus.jpg" width="500" height="500" alt="Circus" usemap="#circusmap">
<map name="circusmap">
<area shape="rect" coords="67,114,207,254" href="elephant.htm" alt="Elephant">
<area shape="rect" coords="222,141,318, 256" href="lion.htm" alt="Lion">
<area shape="rect" coords="343,111,455, 267" href="horse.htm" alt="Horse">
<area shape="rect" coords="35,328,143,500" href="clown.htm" alt="Clown">
<area shape="circle" coords="426,409,100" href="clown.htm" alt="Clown">
</map>
</div>
</div>
</body>
</html>

20
map/lion.htm Normal file
View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>HTML Tips and Tricks - Map</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='../main.css'>
</head>
<body>
<div class="demo">
<h2> You have selected a Lion </h2>
<div>
<img src="lion.jpg" alt="lion" />
</div>
</div>
</body>
</html>

BIN
map/lion.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

0
meter/index.html Normal file
View file