SVG Rectangle is used to draw rectangles on webpage, it uses <rect> element to draw a rectangle. Rectangle has some attributes such as x, y, rx (round x), ry (round y), width, height, fill etc. These attributes help rectangle to draw a rectangle on a page.
<rect x="value" y="value" rx="value" ry="value" width="width" height="height" >
</rect>
You can define one or more than one SVG rectangles in a document.
rx and ry attributes plays vital role in making rectangle's different shapes.
<rect x="value" y="value" rx="value" ry="value" width="width" height="height" />
You can define one or more than one attributes in SVG rectangle.
You can use SVG line any where within an HTML document.
Open notepad or any other text editor, follow the following points.
save file with name task.html or task.htm and then open it using any browser and see results.