New course! Every coder should learn Generative AI!
Try a free lesson0
Why do you need to specify widtg and height attributes in both svg and rect elements?
2 Answers
+ 4
Because <rect> is a shape inside the <svg> container, and you don't necessarly want to set it as same size than its parent ^^
0
thanks