I'm trying to understand something very basic about using SVGs in HTML:
I know all about the different methods: as <img>
, as inline, and as <object>
. But regarding the latter, I just can't figure how SVG properties are then controlled.
I'd like to change the fill colour, for instance. I can do it by editing the .svg
file itself. But can I also do it from my CSS stylesheet? I'm assuming that adding <style>
tags in the .svg
file is probably not the recommended solution.