HTML <area>形状属性

❮HTML<area>タグ

shape属性を使用して、画像マップの各領域の形状を指定します。

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

定義と使用法

このshape属性は、領域の形状を指定します。

この属性は、領域のサイズ、形状、および配置を指定するために属性とshape一緒に使用されます。coords


ブラウザのサポート

Attribute
shape Yes Yes Yes Yes Yes

構文

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

属性値

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

❮HTML<area>タグ