What's wrong with my code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What's wrong with my code?

<circle svg width=1000 height=1000 cx=30 cy=30 r=20 fill=red></svg></circle>

22nd Aug 2018, 10:28 PM
Emily LaBar
2 Answers
+ 7
there 's no thing called height-width in svg. Also you forgot to place quotation marks. fill:red should be in style=" …"
23rd Aug 2018, 7:59 PM
Roneel
Roneel - avatar
+ 4
<svg> <circle cx="30" cy="30" r="20" style="fill:red"/> </svg>
22nd Aug 2018, 10:47 PM
Steppenwolf
Steppenwolf - avatar