svg images in html5 | Sololearn: Learn to code for FREE!

+2

svg images in html5

1-<img src="download.jpg.svg" alt="" height="300" /> i write this code for svg image but its not run? when i write the below code it run. <svg> <img src="download.jpg" alt="" height="300" /> </svg> now IS the second example code is true????

3/23/2019 4:29:17 AM

Sanaa Hareb

3 Answers

New Answer

+11

It seems that your image is a JPG file, which means that the file extension will always be .jpg.

+4

Please don't put img element in svg element.

0

No....the second code need the .svg extentension image not the jpg.