+ 2
WEB | SQUARE
I'm trying to make a basic square but it did not work https://code.sololearn.com/WCZ0rRG37GS7/?ref=app
6 Réponses
+ 5
<svg width="1000" height="1000">
<rect width="20" height="20" style="stroke:black;"></rect>
</svg>
+ 5
As JaScript said, adding svg is important.
+ 3
JaScript Anshika Singh ahh i see, thank you so so so much!!!
+ 3
You can do that how you want. hotto doggu in the same svg or in general you will need a position for something you want to paint:
<rect width="40" height="40" x="100" y="200"
style="fill: pink; stroke:black;"></rect>
For more information please see the html course here:
https://www.sololearn.com/learning/2200/
+ 2
Ah what about, what should i do to add squares more than one, should i open a new "svg" tag? JaScript Anshika Singh
+ 1
hotto doggu it is not necessary to open another svg tag. You can do in same, but you have to make changes in length and width (position) .
Ex:-
See, I have inserted two triangle in one svg
https://code.sololearn.com/W5mtIMgCGniw/?ref=app