I am looking to incorporate SVG icons into my websites, but I have concerns about using <image>
which limits the ability to modify SVG properties (such as changing fill color on hover).
I have come across the concept of in-line SVG, which appears to offer greater flexibility. However, I worry that embedding SVG drawing data directly into the HTML file may pose maintenance challenges in the future.
I am seeking a solution that allows me to...
- Save my SVG in an external file
- Reference that SVG from the external file in my HTML document
- Still be able to dynamically change the fill color within the HTML file
Is this possible? And if so, what keyword should I search for?