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

NameTypeDescription
shapeenumerated: default, rect, circle, polySelects 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>
HTML Reference