'map' Example : map « HTML Tag Reference « HTML CSS Reference






'map' Example

    
<html>
<head>
<title>map element example</title>
</head>
<body>
   <img src="http://www.java2s.com/style/logo.png" 
        alt="http://www.java2s.com" 
        width=200 
        height=100 
        usemap="#myMap">
      <map name="myMap">
      <area shape="rect" coords="0, 0, 100, 50" href="http://www.java2s.com">
      <area shape="rect" coords="100, 0, 200, 50" href="http://www.google.com">
      <area shape="rect" coords="0, 50, 100, 100" href="http://www.msn.com">
      <area shape="rect" coords="100, 50, 200, 100" href="http://www.yahoo.com">
      </map>
</body>
</html>
    
      
      








Related examples in the same category

1.'map' Syntax and Note
2.'map' HTML Attributes
3.'map' Event Handlers
4.'map' CSS Attributes and JavaScript Style Properties
5.'map' Microsoft Behaviors
6.'map' JavaScript Properties
7.'map' JavaScript Methods
8.'map' JavaScript Collections