How can add images from folders that arent holding the html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can add images from folders that arent holding the html

31st May 2016, 2:53 PM
PiplupSupreme
PiplupSupreme - avatar
3 Answers
0
just copy the address of the image and putt it after <img src=...................>
31st May 2016, 6:25 PM
Muhammad Taha
Muhammad Taha - avatar
0
But your page will load faster if it's in the folder
1st Jun 2016, 2:21 AM
Adeboye Adejuwon
Adeboye Adejuwon - avatar
0
if your folder is inside the same folder as index.html and inside that folders folder is your image it would be <img src="/imagefolder/img.jpg" alt=""/> if you need to go back to a folder from the one you are currently in it would be <img src="../previousfolder/images/img.jpg" alt=""/>
11th Jun 2016, 7:07 AM
Matt