HTML-<area> -Shape -Attribut

❮ HTML <area>-Tag

Beispiel

Verwenden Sie das Attribut shape, um die Form jedes Bereichs in der Imagemap anzugeben:

<map name="planetmap">
<area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun">
<area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury">
<area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus">
</map>

Definition und Verwendung

Das shapeAttribut gibt die Form einer Fläche an.

Das shapeAttribut wird zusammen mit dem coordsAttribut verwendet, um die Größe, Form und Platzierung eines Bereichs anzugeben.


Browser-Unterstützung

Attribute
shape Yes Yes Yes Yes Yes

Syntax

<area shape="default|rect|circle|poly">

Attributwerte

Value Description
default Specifies the entire region
rect Defines a rectangular region
circle Defines a circular region
poly Defines a polygonal region

❮ HTML <area>-Tag