Image in back folder? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Image in back folder?

If i want to add image in html i write in the src attribute the image name.png or jpg or any type.... This is if the image in the same folder.. And if it in a folder inside the main folder i can use this method ( images/img1.png) for example.... But i don't know how can i write the url of an image in a back folder outside the folder have html document..???!

27th Apr 2019, 3:49 PM
Ahmed Mohamed Zanaty
Ahmed Mohamed Zanaty - avatar
1 Answer
+ 2
you can use ../ to go back one folder or use / at the start to start in root folder
27th Apr 2019, 4:21 PM
Taste
Taste - avatar