- object.svg
- style.css
SVG
<svg width="300" height="300">
<line x1="40" y1="50" x2="260" y2="50" stroke-width="50" stroke="tomato" stroke-linecap="butt"></line>
<line x1="40" y1="150" x2="260" y2="150" stroke-width="50" stroke="gold"></line>
<line class="shape-linecap" x1="40" y1="250" x2="260" y2="250" stroke-width="50" stroke="lightseagreen"></line>
</svg>
CSS
svg {
border: 1px solid #dddddd;
}
You’ve gone to a different page
Goalscompleted
0
- Assign the attribute
stroke-linecap="round"
to the second line. - In the CSS, assign the value
square
to thestroke-linecap
property for the third line.
Comments