+ 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????

23rd Mar 2019, 4:29 AM
Sanaa Hareb
Sanaa Hareb - avatar
3 odpowiedzi
+ 11
It seems that your image is a JPG file, which means that the file extension will always be .jpg.
23rd Mar 2019, 5:01 AM
Rowsej
Rowsej - avatar
+ 4
Please don't put img element in svg element.
23rd Mar 2019, 7:13 AM
Gordon
Gordon - avatar
0
No....the second code need the .svg extentension image not the jpg.
2nd Oct 2019, 3:06 AM
MD. Sabbir Hossain
MD. Sabbir Hossain - avatar