Even though my html file and image are in the same file the img tag won't find my image. All that is displayed is a tiny image logo, I have also tried all the ../../ etc. but it won't find. The image name is correct too..index.html
Asked
Active
Viewed 59 times
-1
-
How are we supposed to help you with the information (or rather lack thereof) provided? – domsson Apr 10 '17 at 10:05
-
1Do not make a screen shot of the code – Apr 10 '17 at 10:06
-
Also, check http://stackoverflow.com/questions/24028561/relative-path-in-html or http://stackoverflow.com/questions/31397137/img-tag-not-working-with-relative-path-in-src or any of the other questions dealing with the exact same issue. – domsson Apr 10 '17 at 10:07
-
Can you please add a screenshot of the directory in which your html file and images are stored? – Xander Apr 10 '17 at 10:15
-
If you image situated in corren directiory where you Page.html you make all correct but may be you got image with another format like jpg,png, or may be some else. So try to see you mistake in write name of you IMG – NoName Apr 10 '17 at 10:22
-
[Edit] your screenshoot into a block code a picture add nothing here. For fixing your path you can use a real EDI or Add to your question the path to your Html and the path to your file. – Drag and Drop Apr 10 '17 at 11:54
2 Answers
0
From you screenshot, it looks like the image tag is working fine and the image is there, but you have the wrong file location.
Is the image you're trying to display inside a directory different to the index.html
file? if so you need to do directory/image.jpg
etc
-
Thanks for making me aware that OP actually gave us a picture. I'm curious though how you know that the image file is actually there? I can't spot that on the picture. – domsson Apr 10 '17 at 10:10
-
Thanks for the edit, the default error image thumbnail is appearing below the li element. – Xander Apr 10 '17 at 10:12
-
Ah, you're referring to the `img` element, not the actual image file in the file system I take it. – domsson Apr 10 '17 at 10:13
-
Yes, the tag seems to be working correctly as far as I can see. I thinks it's an issue with location etc, hopefully OP can show me the directory. – Xander Apr 10 '17 at 10:20
-2
Start renaming your file all in lowercase.

IooS
- 1
- 3
-
1While I would personally agree with this *style recommendation*, there is no technical need for this. Also, it does not directly address the OP's question. – domsson Apr 10 '17 at 10:07