HTML Attributes
HTML shape attribute
Selects the geometry of an image-map area. The coords list must match the geometry; default covers the remaining image region. Applicable elements include: <area>. Check each element’s value rules. Example uses illustrative URLs or local assets; provide the corresponding files or application endpoints when running it.
Formal Syntax & Structure
html syntaxhtml
shape="circle"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| shape | enumerated: default, rect, circle, poly | Selects the geometry of an image-map area. The coords list must match the geometry; default covers the remaining image region. |
Working Example
Example Snippethtml
<img src="map.png" alt="Map" usemap="#m"><map name="m"> <area shape="circle" coords="50,50,20" href="/park" alt="Park"></map>