I am facing a challenge with incorporating button images saved as svgs into my HTML site. These images are intricate, so I prefer to have them stored separately as .svg files rather than directly within the HTML file. Additionally, the buttons are circular in shape.
My initial thoughts were to add the buttons as background images in CSS or inserting them as standard images with an onclick method. However, both methods seem overly complex and counterintuitive. My uncertainty on the best approach led me here seeking advice.
Here is a snippet of what I have attempted so far:
<div class="sw-buttons">
<button id="sw-button-1" />
</button>
<button id="sw-button-2" />
</button>
...(more buttons here)
</div>
While researching, I came across this resource, but it includes the svg images directly in the HTML which is not ideal for my case.