Img Src For Svg. The following is a guest post by Amelia Bellamy-Royds. Embedding an SVG image using an img element is done just like any other type of image.
Amelia has lots of experience with SVG as the co-author of SVG Essentials and author of the upcoming Using SVG with CSS3 and HTML5Amelia and I both will be speaking on SVG at the upcoming RWD Summit as well. . The only image formats SVG software must support are JPEG PNG and other SVG filesAnimated GIF behavior is undefined.
Embedding an SVG image using an img element is done just like any other type of image.
It will then scale as expected and be fluid in all browsers except for Internet Explorer IE. Using that string as the src of an image is fairly straightforward with one gotcha Step one. For that add the src attribute as a link to the path of system drive where the image is stored. It will then scale as expected and be fluid in all browsers except for Internet Explorer IE.