why width and height in svg and how they can be used??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why width and height in svg and how they can be used???

in rectangle method <svg width=" 2000" height="2000"> < rect width= " 200 height = " 200" x= "20" y =" 20" fill = "green"/> </svg>

30th Oct 2018, 11:19 AM
Kushi Karthik
2 Answers
+ 2
The width and height attributes on the SVG element define the size of the container for rect. https://www.w3schools.com/html/html5_svg.asp
30th Oct 2018, 12:03 PM
Janningā­
Janningā­ - avatar
+ 1
thanks
30th Oct 2018, 12:24 PM
Kushi Karthik