Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Area shape Property

Area shape Property

Area Object Reference Area Object


Definition and Usage

The shape property can set or return the value of the shape attribute of a region.

The shape attribute specifies the shape of a region in an image map.

Syntax

areaObject.shape=

value

The shape attribute can be the following values:

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

Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the shape property.


Example

Example

The following example returns the shape of the "Venus" region in the image map:

Runoob Tutorial(runoob.com) Venus

Shape of the Venus region:

The example above produces the following output:

Shape of the Venus region: circle

Try it »


Area Object Reference Area Object