SVG Polyline in HTML
What is Polyline?
Polyline is defined as any shape that consists of different straight lines. All of these lines are connected with each other through different points.
For this exact same purpose, SVG allows us to create them by using the < polyline > element.
Essential attributes in < polyline > tag are:-
- The points attribute defines the list of points (pairs of x and y coordinates). We can add multiple x and y coordinates by just separating them from commas.
- The style attribute defines different styling properties including stroke, stroke-width, fill, etc.