Images & Media

shape="poly"

Defines a polygon using successive x,y coordinate pairs, with at least three points. The final edge closes back to the first point; use meaningful link text for keyboard and nonvisual users. 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="poly"

Parameters & Attributes

NameTypeDescription
shapekeywordDefines a polygon using successive x,y coordinate pairs, with at least three points. The final edge closes back to the first point; use meaningful link text for keyboard and nonvisual users.
coordscoordinate listAt least three x,y pairs.

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="poly" coords="0,0,40,0,20,40" href="#details" alt="Region details"></map><p id="details">Region details</p>
HTML Reference