HTML <mapa> nazwa Atrybut
Przykład
Mapa obrazu z obszarami, które można kliknąć:
<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>
Definicja i użycie
Wymagany name
atrybut określa nazwę mapy obrazu.
Atrybut jest name
powiązany z
<img>
atrybutem usemap
i tworzy relację między obrazem a mapą.
Obsługa przeglądarki
Attribute | |||||
---|---|---|---|---|---|
name | Yes | Yes | Yes | Yes | Yes |
Składnia
<map name="mapname">
Wartości atrybutów
Value | Description |
---|---|
mapname | The name of the image map |
❮ Znacznik HTML <mapa>