HTML <mappa> nome Attributo

❮ Tag HTML <mappa>

Esempio

Una mappa immagine, con aree cliccabili:

<img src="workplace.jpg" alt="Workplace" usemap="#workmap" width="400" height="379">

<map name="workmap">
  <area shape="rect" coords="34,44,270,350" alt="Computer" href="computer.htm">
  <area shape="rect" coords="290,172,333,250" alt="Phone" href="phone.htm">
  <area shape="circle" coords="337,300,44" alt="Cup of coffee" href="coffee.htm">
</map>

Definizione e utilizzo

L' nameattributo obbligatorio specifica il nome di una mappa immagine.

L' nameattributo è associato all'attributo <img>'s usemape crea una relazione tra l'immagine e la mappa.


Supporto del browser

Attribute
name Yes Yes Yes Yes Yes

Sintassi

<map name="mapname">

Valori di attributo

Value Description
mapname The name of the image map

❮ Tag HTML <mappa>