how to display image if it is located in another folder that of HTML file. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how to display image if it is located in another folder that of HTML file.

25th Oct 2016, 11:26 PM
Sahil
Sahil - avatar
3 Answers
+ 2
you would need to give the absolute address of that image in the image src
26th Oct 2016, 5:17 AM
GoldenSquare
GoldenSquare - avatar
+ 2
You can write the location to your image. ie. <img src="///C:/Users/User1/Desktop\image1. jpg" />
2nd Nov 2016, 4:36 AM
Amit Dubey
Amit Dubey - avatar
+ 1
it is best to locate it in the same file
26th Oct 2016, 7:58 PM
Yahya