If the image is not saved in the same folder as html what should we write the location of image | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If the image is not saved in the same folder as html what should we write the location of image

3rd Jun 2016, 5:05 PM
Dayananda kishore
Dayananda kishore - avatar
2 Answers
+ 1
Wrie the path of the image. example... C:\Users\image.jpeg
3rd Jun 2016, 7:49 PM
Daniel Bampoe
Daniel Bampoe - avatar
+ 1
Depends on where it is saved. Best practice is to create a new folder for your project and save everything you need there. As your project may grow bigger and bigger, it's better to make sub-folders for your images, stylesheets and maybe JavaScript files inside that folder. I.e 'images', 'css', 'js'.. A link to an image would for example be <img src="images/flower.jpg"/>.
4th Jun 2016, 3:01 AM
ZinC
ZinC - avatar