SVG is a language that uses XML to describe two-dimensional graphics and drawing programs.
SVG <line> syntax
The<line> element is used to create a straight line.
SVG <line> example
<!DOCTYPE html> <html> <body> <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <line x1="0" y1="0" x2="200" y2="200" style="stroke:rgb(255,0,0);stroke-width:2" /> </svg> </body> </html>
Run Instance»
Click "Run Instance" " button to view online examples