How to create or draw a rectangle using SVG in HTML?
Originally Published Here ๐!
To create a rectangle, you can use the rect element inside the svg element in HTML.
TL;DR
<!-- Create rectangle in SVG -->
<svg>
<rect x="0" y="0" width="30" height="20" />
</svg>
For example, to make a 30*20 (width a...
melvingeorge-me.hashnode.dev2 min read