HTML <area> shape Attribuut

❮ HTML <area>-tag

Voorbeeld

Gebruik het shape-attribuut om de vorm van elk gebied in de imagemap te specificeren:

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

Definitie en gebruik

Het shapeattribuut specificeert de vorm van een gebied.

Het shapeattribuut wordt samen met het coordsattribuut gebruikt om de grootte, vorm en plaatsing van een gebied te specificeren.


Browserondersteuning

Attribute
shape Yes Yes Yes Yes Yes

Syntaxis

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

Attribuutwaarden

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