How do you draw a parallelogram in HTML? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How do you draw a parallelogram in HTML?

Drawing a parallelogram using a polygon

17th Dec 2017, 2:44 PM
ItzJimoh
ItzJimoh - avatar
2 Answers
+ 3
using the usual HTML sequence of coding, the following can be used to obtain a blue rectangle <svg width="2000" height="2000"> <polygon points="150 150, 100 200, 200 200, 250 150" style="stroke: #0000FF; stroke-width: 5; stroke-linejoin:round; fill:blue"/> </svg>
17th Dec 2017, 2:46 PM
ItzJimoh
ItzJimoh - avatar