line

A line can only be stroked. It can have the following attributes:

Attribute Description
x1 The x-axis coordinate of the start point of the line. Default is 0. It must be given as user coordinates.
y1 The y-axis coordinate of the start point of the line. Default is 0. It must be given as user coordinates.
x2 The x-axis coordinate of the end point of the line. Default is 0. It must be given as user coordinates.
y2 The y-axis coordinate of the start point of the line. Default is 0. It must be given as user coordinates.
transform See Transformations. This attribute is applied to an element before any other coordinate or length values supplied for that element are processed.

Example:

Copy
<line x1="20" y1="20" x2="60" y2="60" style=" stroke:blue;stroke-width:3" />