Creating an Image Map
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Creating an Image Map</title>
</head>
<body>
<p>
<img src="http://java2s.com/style/logo.png" alt="Cafe Map" width="500" height="300" border="0" usemap="#cafe" />
<map name="cafe">
<area shape="circle" coords="154,150,59" href="Cafe.html" target="_self" alt="Cafe">
<area shape="poly" coords="272,79,351,79,351,15,486,15,486,218,272,218,292,166,292,136,270,76" href="courtyard.html" target="_self" alt="Courtyard">
<area shape="rect" coords="325,224,488,286" href="Kitchens.html" target="_self" alt="Kitchens">
</map>
</p>
</body>
</html>
Related examples in the same category