HTML - Shape -Attribut
Definition und Verwendung
Das shape
Attribut gibt die Form einer Fläche an.
Das shape
Attribut wird zusammen mit dem Attribut verwendet, um die Größe, Form und Platzierung eines Bereichs anzugeben.
coords
Gilt für
Das shape
Attribut kann für das folgende Element verwendet werden:
Element | Attribut |
---|---|
<Gebiet> | Form |
Beispiel
Eine Imagemap mit anklickbaren Bereichen:
<img src ="planets.gif"
width="145" height="126"
alt="Planets"
usemap="#planetmap">
<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>
Browser-Unterstützung
Attribute | |||||
---|---|---|---|---|---|
shape | Yes | Yes | Yes | Yes | Yes |