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
+ 3

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

<    line>

18th Apr 2017, 12:53 PM
123
4 Answers
+ 24
<polyline>
18th Apr 2017, 12:57 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
You can use <polyline> or <path>. Polyline: https://www.w3schools.com/graphics/svg_polyline.asp Path: https://www.w3schools.com/graphics/svg_path.asp I think polyline is what you are looking for.
18th Apr 2017, 12:57 PM
Thanh Le
Thanh Le - avatar
+ 1
Nice question, I also want to know that
20th Apr 2020, 10:43 AM
SITHU Nyein 🇲🇲
SITHU Nyein 🇲🇲 - avatar
0
You could just read the text before the question, you know? http://imgur.com/si7cuoM
18th Apr 2017, 1:05 PM
Daniel Thomalla
Daniel Thomalla - avatar