Svg | 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!

6/28/2020 4:26:02 PM

Ahmed Mohammed

2 Answers

New Answer


You can insert image in svg using img tag for svg image we have unique tag and that is image tag see the following syntex. <image xlink:href="imageURL" x="" y="" height="" width=""/>


<svg width="300" height="300"> <image href="./download.jpg" height="300" width="300"/> </svg>