+ 2

WEB | SQUARE

I'm trying to make a basic square but it did not work https://code.sololearn.com/WCZ0rRG37GS7/?ref=app

27th Nov 2021, 11:35 AM
hotto doggu
hotto doggu - avatar
6 Respostas
+ 5
<svg width="1000" height="1000"> <rect width="20" height="20" style="stroke:black;"></rect> </svg>
27th Nov 2021, 11:43 AM
JaScript
JaScript - avatar
+ 5
As JaScript said, adding svg is important.
27th Nov 2021, 11:44 AM
đ“đ“·đ“Œđ“±đ“Č𝓮đ“Ș (Anshika)
đ“đ“·đ“Œđ“±đ“Č𝓮đ“Ș (Anshika) - avatar
+ 3
JaScript Anshika Singh ahh i see, thank you so so so much!!!
27th Nov 2021, 12:12 PM
hotto doggu
hotto doggu - avatar
+ 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/
27th Nov 2021, 1:17 PM
JaScript
JaScript - avatar
+ 2
Ah what about, what should i do to add squares more than one, should i open a new "svg" tag? JaScript Anshika Singh
27th Nov 2021, 12:24 PM
hotto doggu
hotto doggu - avatar
+ 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
28th Nov 2021, 2:41 AM
đ“đ“·đ“Œđ“±đ“Č𝓮đ“Ș (Anshika)
đ“đ“·đ“Œđ“±đ“Č𝓮đ“Ș (Anshika) - avatar