Latest web development tutorials

SVG curve

SVG curve - <polyline>

Example 1

<Polyline> element is used to create any shape only line:

Here is the SVG Code:

Examples

<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>

try it"

F For Opera users: view SVG file (right-click on the preview source SVG graphics).


Example 2

Just another example of the line:

Here is the SVG Code:

Examples

<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>

try it"

F For Opera users: view SVG file (right-click on the preview source SVG graphics).