Adding image source | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Adding image source

Hey guys! I am super new in web development so haven't mastered lots of things but i am at a certain level. I have trouble with image source. Meaning that how do i locate the location of the image if it's in my PC. I need help from anyone of you. Thanks

28th Nov 2018, 7:24 PM
Enoc
Enoc - avatar
2 Answers
+ 5
/if your html file and image is in same folder, all you need is simple code <img src="img_name. jpg" > /if your image and html file is in different directory then <img src="c:/photo/my_pic/img_name. jpg" > 📂 c:/ └📁 photp └📁 my_pic └💾 img_name. jpg /https://www.sololearn.com/learn/HTML/1030/?ref=app
28th Nov 2018, 7:36 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
29th Nov 2018, 4:19 AM
Enoc
Enoc - avatar