Line Element

100, 100350, 350
<svg width="450" height="450" >
<line
x1="100"
Start X
y1="100"
Start Y
x2="350"
End X
y2="350"
End Y
stroke="#fa3838" stroke-width="20" fill="none"
/>
</svg>

Line

The <line> element is a basic SVG shape that connects two points with a straight line.

Starting point of the line

End point of the line

Styling

Stroke Color

You can set any color value that is valid in CSS. This includes named colors, hex codes, the rgb function and more. Set it to none to hide.

Stroke Width

Set the thickness of the stroke. It can be set to any positive number.

Stroke Linecap

Set the shape to be used at the end of a line or open subpath.

Stroke Linejoin

Set the shape to be used at the corners of paths and basic shapes when they are stroked.

Fill Color

You can set any color value that is valid in CSS. This includes named colors, hex codes, the rgb function and more. Set it to none to hide.