Insert Image from Desktop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Insert Image from Desktop

Hello there everyone. I'm currently running into a problem and I just cant figure out how to solve it. So, to practise, I want to insert an image that is called OakTree.jpg from my desktop, to have it on the webpage. This Picture also is in a folder called "img". But whenever I do it, the programm doesn't seem to know where my picture is. The Whole folder path is: C:\User\Admin\Desktop\img\OakTree.jpg I've tried it on several ways: <img src="img/OakTree.jpg" alt=""> <img src="C:\User\Admin\Desktop\img\OakTree.jpg" alt=""> <img src="OakTree.jpg" alt=""> But sadly, nothing seems to work. I would really appreciate any help. Thanks!

21st May 2019, 7:39 PM
tobiasth2003
tobiasth2003 - avatar
2 Answers
+ 4
you can put the image in the same folder as the html document, that way is probably safe, and easy
21st May 2019, 8:09 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 1
Alright, it worked. Thank you very much!
22nd May 2019, 6:22 AM
tobiasth2003
tobiasth2003 - avatar