0
Why is the 2. rectangle not displayed?
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <svg width="500" height="500"> <rect width="100" height="50" x="0" y="0"> <rect width="100" height="50" x="0" y="50" fill="green"> </svg> </body
3 Answers
+ 9
You have to close both rect tags.
<rect your code />
+ 7
Missing "/" before ">" in first svg tag
+ 1
Oh wow thanks a lot to you both! I thought the â/â would be optional similar to the <br> tag. Finally I see the mistake