1.21 gigawatts
1.21 gigawatts

Reputation: 17830

Can I use SVG in IMG tags in browsers yet?

This question may be better rephrased how do I know when I can use this feature listed on "can i use.com" but my question is can I use SVG in the IMG tag yet? http://caniuse.com/#feat=svg-img

Upvotes: 0

Views: 121

Answers (2)

Claudiordgz
Claudiordgz

Reputation: 3049

This will mostly be an opinionated answer. Since iOS is a very big deal for websites and iOS 9 adoption is steady I suggest to use svg in img tag depending on what your analytics say regarding users using iOS 8.4 or below, note this is for inlining the svg data.

Otherwise is a resounding yes.

Upvotes: 2

Johan Nordberg
Johan Nordberg

Reputation: 3777

Yes. It works in all browsers that people actually use today. Don't forget to set the width and height of your image.

Upvotes: 2

Related Questions