0

What's the problem of this code?

I am trying to connect the two lines but how? https://code.sololearn.com/WiNt8j8Q4eNN/?ref=app

1st Oct 2017, 1:06 AM
Blugon
Blugon - avatar
3 Answers
0
#1 Mistake - You just need ONE "svg" element. TWO "svg" elements make the lines not connected #2 Mistake - Your second "line" element has TWO closing tags. Here's your correct code: <svg width="400" height="400"> <line x1="10" y1="10" x2="100" y2="10" style="stroke:#000000; stroke-linecap:rect; stroke-width:20"/> <line x1="55" y1="10" x2="55" y2="60" style="stroke:#000000; stroke-linecap:rect; stroke-width:20"/> </svg>
1st Oct 2017, 4:54 AM
Ricky Afdita A P
Ricky Afdita A P - avatar
0
@Ricky Afdita A P Thanks for your help
1st Oct 2017, 5:09 AM
Blugon
Blugon - avatar
0
wooow
12th Nov 2017, 2:09 PM
Fahmi Suhendra
Fahmi Suhendra - avatar