0

Who can give an example of <polygon> and <polyline> elements?

Hello everybody. Who can give an example of <polygon> and <polyline> elements? I don't understand this tags. Thank you in advance!

8th Apr 2018, 3:12 PM
🅿️АУАН🇰🇿
🅿️АУАН🇰🇿 - avatar
2 Answers
8th Apr 2018, 4:39 PM
Damyan Petkov
Damyan Petkov - avatar
+ 1
<svg width="2000" height="500"> <polyline style="stroke-linejoin:miter; stroke:black; stroke-width:12; fill: none;" points="0 0 , 0 100 , 100 100" /> </svg> <!-- use the same code but for polygon , it will automatically connect the co-ordinates (0,0) and (100,100)--> <svg width="2000" height="500"> <polygon style="stroke-linejoin:miter; stroke:black; stroke-width:12; fill: none;" points="0 0 , 0 100 , 100 100" /> </svg>
11th Apr 2018, 3:47 PM
Monkey D. Luffy
Monkey D. Luffy - avatar