HTML | <a> shape Attribute
The shape attribute is used with the coords attribute to describe the size, shape, and placement of a link in an <object> or <img> element. It is not supported by HTML 5.
Syntax:
<a shape="value">
Attribute Values:
- default: It is used to specify the entire region.
- rect: It is used to specify the rectangular region.
- circle: It is used to specify a circular region.
- poly: It is used to specify the polygonal region.
Example:
<!DOCTYPE html> <html> <head> <title> HTML a shape Attribute </title> </head> <body style="text-align: center"> <object data= alt="shape" type="image/png" usemap="#shapemap"> <map name="shapemap"> <!-- a tag contained image. --> <a href= shape="poly" coords="59, 31, 28, 83, 91, 83"> Polynomial </a> <a href= shape="circle" coords="155, 56, 26"> Circle </a> <a href= shape="rect" coords="224, 30, 276, 82"> Rectangle </a> </map> </object> </body> </html> |
chevron_right
filter_none
Output:

Supported Browsers: The browser supported by HTML <a> shape Attribute are listed below:
- Firefox
- Opera
Recommended Posts:
- HTML | shape Attribute
- HTML | <area> shape Attribute
- HTML | DOM Area shape Property
- HTML | min Attribute
- HTML | value Attribute
- HTML | <li> value Attribute
- HTML | <bdo> dir Attribute
- HTML | alt attribute
- HTML | dir Attribute
- HTML | for Attribute
- HTML | <map> name Attribute
- HTML | <img> src Attribute
- HTML | name Attribute
- HTML | max attribute
- HTML src attribute
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


