HTML- Namensattribut <map >

❮ HTML <map>-Tag

Beispiel

Eine Imagemap mit anklickbaren Bereichen:

<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>

Definition und Verwendung

Das erforderliche nameAttribut gibt den Namen einer Imagemap an.

Das nameAttribut ist dem <img>'s- usemapAttribut zugeordnet und stellt eine Beziehung zwischen dem Bild und der Karte her.


Browser-Unterstützung

Attribute
name Yes Yes Yes Yes Yes

Syntax

<map name="mapname">

Attributwerte

Value Description
mapname The name of the image map

❮ HTML <map>-Tag