HTML CSS Reference/HTML Attributes Reference/usemap

Материал из Web эксперт
Перейти к: навигация, поиск

"usemap" Example

   <source lang="html4strict">
   

<HTML> <head><Title>Example For usemap</Title></head> <BODY> <map name="myMap">

  <area shape="rect" coords="0, 0, 100, 50" href=http://www.wbex.ru>
  <area shape="rect" coords="100, 0, 200, 50" href="http://www.wbex.ru">
  <area shape="rect" coords="200, 0, 300, 50" href="http://www.wbex.ru">

</map> <img src="http://www.wbex.ru/style/logo.png"

    alt="http://www.wbex.ru" 
    width=300 
    height=100 
    usemap="#myMap">

</BODY> </HTML>


     </source>
   
  


usemap is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<img> <input> | | |<object> | +----------------+--------------------------------------------------------------+

     </source>
   
  


"usemap" Syntax and Note

   <source lang="html4strict">

Note:

This attribute sets the image map for the map element. The value of this attribute must either be the URL of an image map, or a "#" followed by the id attribute value of a <map> element on the same page.

Syntax:

<element usemap="value">


     </source>