How do I define an img src path. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do I define an img src path.

when I try to copy paste the title of img in img src="image name" the img does not show up

19th Jun 2016, 9:14 AM
Manav Shah
Manav Shah - avatar
8 Answers
+ 2
go to the image, copy it's location then do this: <img src="paste the location/IMG.jpg"></img> OR save the image in the same folder as your HTML file and do this: <img src="IMG.jpg"></img> this should work.
20th Jun 2016, 11:58 AM
Mohammad Fahad Sayed
Mohammad Fahad Sayed - avatar
+ 1
can't I pick an image from my computer?
19th Jun 2016, 9:33 AM
Manav Shah
Manav Shah - avatar
+ 1
either put the image in the same folder as the html file or put the full path to the image in the html e.g "c:\images\myimage.jpg".
19th Jun 2016, 10:25 AM
Alex Wood
Alex Wood - avatar
+ 1
Try opening the image directly in your browser and copy the path from the address bar.
19th Jun 2016, 10:32 AM
Alex Wood
Alex Wood - avatar
+ 1
well, thanks. i will try
19th Jun 2016, 10:34 AM
Manav Shah
Manav Shah - avatar
+ 1
i know that should work. but i dont know, its not
20th Jun 2016, 1:10 PM
Manav Shah
Manav Shah - avatar
0
you have to use an online image link like the one on a particular website. for example "http://www.sololearn.com/images/tree.jpg
19th Jun 2016, 9:30 AM
Oluwaseun Ogunlana B.
Oluwaseun Ogunlana B. - avatar
0
I tried that. but a small square box appears instead of the image
19th Jun 2016, 10:27 AM
Manav Shah
Manav Shah - avatar