Atribut bentuk HTML <area>

tag HTML <area>

Contoh

Gunakan atribut bentuk untuk menentukan bentuk setiap area di peta gambar:

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

Definisi dan Penggunaan

Atribut shapemenentukan bentuk suatu area.

Atribut shapedigunakan bersama dengan coordsatribut untuk menentukan ukuran, bentuk, dan penempatan suatu area.


Dukungan Peramban

Attribute
shape Yes Yes Yes Yes Yes

Sintaksis

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

Nilai Atribut

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

tag HTML <area>