SVG Polyline element (original) (raw)
Last Updated : 7 Aug, 2020
The element of SVG in HTML is used to create a shape by connecting lines through different points. It is different from as it can be used to create open shapes.
Syntax:
Attributes:
- 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 SVG element.
Example 1:
HTML `
Document polylinepolygon
`
Output:
Example 2:
HTML `
Document polylinepolygon
`
Output:
Supported Browsers:
- Chrome
- Edge
- Opera
- Internet Explorer
- Safari
- Firefox