Il tag <map> definisce una mappa di immagine
Esempio
<img src ="menu.png" width ="300" height ="400" usemap="#myMenu" />
<map id ="myMenu" name=" myMenu">
<area shape ="rect" coords ="0,0,300,100" href ="1.htm" alt="1" />
<area shape ="rect" coords ="0,100,300,200" href ="2.htm" alt="2" />
<area shape ="rect" coords ="0,200,300,300" href ="3.htm" alt="3" />
<area shape ="rect" coords ="0,300,300,400" href ="4.htm" alt="4" />
</map>
Attributi
| Attributo |
Descrizione |
| class |
la classe CSS |
| id |
identifica l’elemento |
| lang |
la lingua |
| style |
lo stile css da applicare |
| title |
il titolo |
| name |
il nome della mappa |
Eventi
- onfocus
- onblur
- onclick
- ondblclick
- onmousedown
- onmouseup
- onmouseover
- onmousemove
- onmouseout
- onkeypress
- onkeydown
- onkeyup