SVG Line is used to draw lines on webpage, it uses <line> element to draw a line. Line has some attributes such as x1, y1, x2, y2, stroke, stroke-width, fill etc. These attributes help line to draw a line from one point to another point or from starting point to end point.
<line x1="value" y1="value" x2="value" y2="value" >
</line>
You can define one or more than one SVG line in a document.
Stroke width attribute is used to make line thick and bold.
<line x1="value" y1="value" x2="value" y2="value"></line>
You can define one or more than one attributes in SVG line.
You can use SVG line any where within an HTML document.
Open notepad or any other text editor, follow the following points.
save file with name task.html or task.htm and then open it using any browser and see results.