Saved Bookmarks
| 1. |
How to draw a rectangle in SVG? |
|
Answer» 'rect' tag of SVG is used to draw a rectangle. Following are the commonly used attributes −
Example − <rect x = "100" y = "30" width = "300" height = "100" style = "fill:rgb(121,0,121);stroke-width:3;stroke:rgb(0,0,0)" > |
|