- 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>
4 Respuestas
+ 3
missing "="
- 1
Yea, but in solo learn it states it in one lesson as the syntax for a line?
- 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
- 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>