- object.svg
- style.css
SVG
<svg width="300" height="150">
<circle r="60" cx="75" cy="50%"></circle>
<circle r="60" cx="150" cy="50%"></circle>
<circle class="shape-fill" r="60" cx="225" cy="50%"></circle>
</svg>
CSS
svg {
border: 1px solid #dddddd;
}
.shape-fill {
}
You’ve gone to a different page
Goalscompleted
0
- Specify a fill in the HEX format for the first shape using an attribute:
fill="#ff7700". - And assign a fill in the HSLA format to the second shape using an attribute:
fill="hsla(50, 100%, 50%, 0.75)". - For the third shape, assign a fill by specifying the name of the color
fill: yellowgreenin the CSS editor.
Comments