Category Archives: HTML5

SVG image isn’t displaying in Chrome browser

Chrome browser doesn’t support SVG format with <img src=””> tag anymore. Peoples are facing issues that they aren’t able to see their images in Chrome browser because the images are in SVG format.
So I found a solution to display SVG image in Chrome browser with <object> tag.


<object data="/images/yourlogo.svg" type="image/svg+xml" width="100" height="100" class="mylogo"></object>

You can apply CSS rules by defining a class on the <object> tag like shown in above example.
And you can also add width and height attributes on the <object> tag.

I hope this will resolve your problem in Google Chrome Browser.