I've been exploring different methods to change the color of an SVG using CSS/HTML. Most tutorials suggest placing the path inside an SVG tag like this:
<path class="icon" d="M30.148 5.588c-2.934-3.42-7.288-5.588-12.148-5.588-8.837 0-16 7.163-16 16s7.163 16 16 16c4.86 0 9.213-2.167 12.148-5.588l-10.148-10.412 10.148-10.412zM22 3.769c1.232 0 2.231 0.999 2.231 2.231s-0.999 2.231-2.231 2.231-2.231-0.999-2.231-2.231c0-1.232 0.999-2.231 2.231-2.231z"></path>
However, I'm looking for a simpler approach. I just want to use an img or svg tag in my HTML, specify the source="" as a local file, and then change the color. The solution should be exclusively HTML/CSS-based.
Unfortunately, I haven't found a solution yet. Any suggestions or ideas would be greatly appreciated :)
EDIT: I know about style="fill: #;", but I'm more interested in a 'unconventional' method of referencing the SVG using only HTML