Area Object
The shape property sets or returns the value of the shape attribute of an area.
The shape attribute specifies the shape of an area.
The shape property can have one of the following values:
| Value | Description |
|---|---|
| default | Specifies the entire region |
| rect | Defines a rectangular region |
| circle | Defines a circular region |
| poly | Defines a polygonal region |
![]()
The shape property is supported in all major browsers.
Return the shape for the "Venus" area in the image-map:
The output of the code above will be:
Area Object
Your message has been sent to W3Schools.