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


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


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


Please don't put img element in svg element.


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