Easy Tutorial
❮ Svg Feoffset Svg Stroke ❯

SVG <polyline>


SVG Polyline - <polyline>

Example 1

The <polyline> element is used to create any shape that consists only of straight lines:

Below is the SVG code:

Example

<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
  <polyline points="20,20 40,25 60,40 80,120 120,140 200,180"
  style="fill:none;stroke:black;stroke-width:3" />
</svg>

For Opera users: View SVG file (right-click on the SVG graphic to view source).


Example 2

Another example of a shape consisting only of straight lines:

Below is the SVG code:

Example

<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
  <polyline points="0,40 40,40 40,80 80,80 80,120 120,120 120,160" style="fill:white;stroke:red;stroke-width:4" />
</svg>

For Opera users: View SVG file (right-click on the SVG graphic to view source).

❮ Svg Feoffset Svg Stroke ❯