Skip to content Skip to sidebar Skip to footer

Can An SVG Included In HTML With An "img" Tag Have A Link To An External Image With The "image" Tag?

I have the following file, image.svg, along with a file bitmap.png in the same spot on a server:

Solution 1:

The svg itself is valid.

Some browsers don't allow external references when an svg is referenced via <img>. What you can do to get it working is to convert the png to a data URI and put that there instead, see e.g this answer for how to do that.


Post a Comment for "Can An SVG Included In HTML With An "img" Tag Have A Link To An External Image With The "image" Tag?"