SVG line
The <line>
element seems like a simple shape but requires 4 attributes. You define the x
(x1; x2) and y
(y1; y2) coordinates for two points connecting and forming a line. The <line>
element also has the stroke
attribute that specifies the stroke color and width. If you omit these parameters, the line will be invisible.