How to give a location of img in html file..img src line? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to give a location of img in html file..img src line?

16th Sep 2016, 3:24 AM
Nmodi
Nmodi - avatar
2 Answers
+ 1
You can use either a full path ("file:///C:/path/to/your/image.jpg") or a relative path (for example, if your image is in the same folder, just use the name of your image, and if the folder where your html file is has a folder named images, put "images/your_image_name.jpg", etc.).
16th Sep 2016, 9:35 AM
Zen
Zen - avatar
0
basically you have to add photos in the same folder as of html file then you have to just add name with jpg or jpeg orwhatever extension is that of image between quotes
16th Sep 2016, 7:16 AM
Musawer Shah
Musawer Shah - avatar