polygon
The <polygon> component is used to draw a polygon.
NOTE: This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version.
Required Permissions
None
Child Components
animate, animateMotion, and animateTransform are supported.
Attributes
The universal attributes and the attributes listed below are supported.
Example
<!-- xxx.hml -->
<div class="container">
<svg fill="white" stroke="blue" width="400" height="400">
<polygon points="10,110 60,35 60,85 110,10" fill="red"></polygon>
<polygon points="10,200 60,125 60,175 110,100" stroke-dasharray="10 5" stroke-dashoffset="3"></polygon>
</svg>
</div>