InterviewSolution
Saved Bookmarks
| 1. |
How to draw a line in SVG? |
|
Answer» 'line' tag of SVG is used to draw a line. Following are the commonly used attributes −
Example − <line x1 = "20" y1 = "20" x2 = "150" y2 = "150" stroke = "black" stroke-width = "3" fill = "rgb(121,0,121)"> |
|