SVG polygon Element (original) (raw)

Last Updated : 31 Mar, 2022

SVG stands for Scalable Vector Graphic. It can be used to make graphics and animations like in HTML canvas. The 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.

Syntax:

Attributes:

Few examples are given below for a better understanding of the SVG element.

Example 1:

html `

Document

`

Output:

Example 2:

html `

Document

`

Output:

Browsers supported: Below given are the browsers supported by this svg element.