SVG

SVG Tutorials

SVG Line in HTML

SVG Line

 

 

The SVG < line> Tag is used inside the SVG element to create a line. 

 

Essential attributes in < line > Tag are:-

 

  • The x1 attribute defines the starting of the line on the x-axis
  • The y1 attribute defines the starting of the line on the y-axis
  • The x2 attribute defines the ending of the line on the x-axis
  • The y2 attribute defines the ending of the line on the y-axis

Code Explanation

All Tutorials related to SVG Tutorials

All Sections related to SVG