SVG stands for Scalable Vector Graphic. It can be used to make graphics and animations like in HTML canvas. The <polygon> element of SVG is used to make any type of polygon on the SVG and defines a closed shape consisting of a set of connected straight line segments.
<polygon points="Pair of points required to draw the shape" stroke="stroke color" fill="fill color for colored closed shapes">
- points: Pair of points required to draw the shape
- pathLength: It tells the total length of the path.
Few examples are given below for a better understanding of the <polygon> SVG element.
Browsers supported: Below given are the browsers supported by this svg element.
- Internet explorer