Why is the use of specifying width and height in svg attribute? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why is the use of specifying width and height in svg attribute?

30th Oct 2019, 6:15 AM
Sharun Rajeev
Sharun Rajeev - avatar
2 Answers
0
Suppose you have a code like this <svg>width=100 height=90(this is an example not a real code) If create a circle with radius 200,the circle will be split to half but If a rect and the width is greater than 100 the rect will also be split I hope you understand this example
31st Oct 2019, 5:26 PM
Chekwube Victor Chukwuemeka
Chekwube Victor Chukwuemeka - avatar
0
Oh great. So it specifically create an space for the graphical objects.
1st Nov 2019, 2:03 AM
Sharun Rajeev
Sharun Rajeev - avatar