Easy Tutorial
❮ Prop Datetime Name Prop Win Localstorage ❯

Area shape Attribute


Definition and Usage

The shape attribute sets or returns the shape attribute value of an area.

The shape attribute specifies the shape of an area in an image map.

Syntax

The shape attribute can have the following values:

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

Browser Support

All major browsers support the shape attribute.


Example

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

The output of the above example:

❮ Prop Datetime Name Prop Win Localstorage ❯