SVG Polygon is used to draw plygons on webpage, it uses <polygon> element to draw a polygon. Polygon has some attributes such as points, stroke, stroke-width, fill etc. These attributes help polygon to draw a polygon on a page.
<polygon points="values" stroke="color" fill="color">
</polygon>
You can define one or more than one SVG polygons in a document.
Stroke width attribute is used to make stroke thick and bold, it takes value in number.
<polygon points="values" stroke="color" stroke-width="value" fill="color">
</polygon>
You can define one or more than one attributes in SVG rectangle.
You can use SVG polygon any where within an HTML document.
Open notepad or any other text editor, follow the following points.
save file with name task.html or task.htm and then open it using any browser and see results.