- 1

Syntax for a Line?

I just typed the syntax I learned from SoloLearn for a line. It doesn't work in codeplayground. Perhaps somebody can help me understand whats wrong? <svg width"1000" height"1000"> <line x1="10" y1="20" x2="50" y2="100"/> </svg>

27th Nov 2017, 11:11 PM
Howard Eugene Patrick Jr
Howard Eugene Patrick Jr - avatar
4 Respuestas
+ 3
missing "="
28th Nov 2017, 3:02 AM
Calviղ
Calviղ - avatar
- 1
Yea, but in solo learn it states it in one lesson as the syntax for a line?
28th Nov 2017, 1:05 AM
Howard Eugene Patrick Jr
Howard Eugene Patrick Jr - avatar
- 2
You didn't specify a style. I added style="stroke:rgb(255,0,0);stroke-width:2" to the line and it showed up
27th Nov 2017, 11:23 PM
John Wells
John Wells - avatar
- 2
In html class, html5 module, svg 4 of 5 uses style. <svg width="400" height="410"> <line x1="10" y1="10" x2="200" y2="100" style="stroke:#000000; stroke-linecap:round; stroke-width:20" /> </svg>
28th Nov 2017, 1:17 AM
John Wells
John Wells - avatar