How To Fill An Svg. You can also apply the fill to the use path symbol circle rect etc but hitting the svg just kinda covers it all which is nice for simple one-color use cases. Svg path fill.
Red To apply for the first d path. Svg fill. CSS can be inserted inline with the element via the style attribute.
For shapes and text its a presentation attribute that defines the color or any SVG paint servers like gradients or patterns used to paint the element.
You can use this attribute with the following SVG elements. You can then click in each region to fill it and use the arrow keys to change colors. We set the fill color to yellow. Non-supporting browsers Chrome Safari latest Edge should show a red fallback fill for the second icon.