Images & Media
shape="circle"
Defines a circular hotspot with center x, center y and radius. A negative radius is invalid; choose coordinates that align with the visible image feature. On area within map; missing or invalid defaults to rect. Geometry must match the actual image. Use alt for linked areas.
Formal Syntax & Structure
html syntaxhtml
shape="circle"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| shape | keyword | Defines a circular hotspot with center x, center y and radius. A negative radius is invalid; choose coordinates that align with the visible image feature. |
| coords | coordinate list | Three numbers: center x, center y, radius. |
Working Example
Example Snippethtml
<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNjAiIGhlaWdodD0iMTAwIj48cmVjdCB3aWR0aD0iMTYwIiBoZWlnaHQ9IjEwMCIgZmlsbD0ibGlnaHRibHVlIi8+PGNpcmNsZSBjeD0iODAiIGN5PSI1MCIgcj0iMzAiIGZpbGw9Im5hdnkiLz48L3N2Zz4=" width="160" height="100" alt="Diagram with a linked region" usemap="#diagram"><map name="diagram"> <area shape="circle" coords="80,50,30" href="#details" alt="Region details"></map><p id="details">Region details</p>