Which <svg> element is used to create any shape that consists of straight lines only?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Which <svg> element is used to create any shape that consists of straight lines only??

11th Sep 2018, 7:24 AM
Ayodeji Abdulazeez
Ayodeji Abdulazeez - avatar
1 Answer
+ 2
SVG <line> tag is used to create lines. Example: <svg height="210" width="500">   <line x1="0" y1="0" x2="200"y2="200"style="stroke:rgb(255,0,0);stroke-width:2" /> </svg> Reminder: Mark this as best if you find this helpful.
11th Sep 2018, 7:33 AM
Email Not Activated