Image not displaying in any brouser | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Image not displaying in any brouser

I have written <img src="untiile.png" alt="">the image is not displaying on any brouser

2nd Aug 2017, 9:35 AM
raj soni
raj soni - avatar
4 Answers
+ 5
Are you trying to display a local image? And did you try to display it with a local (html source) file? As you write your <img> code, the image file need to be at same location than the source file, meaning that you can only link web hosted files inside code playground ^^
2nd Aug 2017, 9:50 AM
visph
visph - avatar
+ 3
1. Check the img format and be sure if it's .PNG,. JPEG or. jpg. 2. Check if the img is in the same folder as the .HTML file. 3. Be sure to run your code on different browsers like Firefox, chrome etc. to know which one wld work. 4. Check your img size too. The resolution cld be the problem. Hope this helps.
2nd Aug 2017, 11:23 AM
Lois Thomas Idzi
Lois Thomas Idzi - avatar
- 1
try another picture.same thing happened with me and I changed the picture I worked.i think a specific amount of bytes can be displayed on a webpage
2nd Aug 2017, 9:40 AM
Ali Ahmed Shaikh
Ali Ahmed Shaikh - avatar
- 1
your answer help me a lot thanks
2nd Aug 2017, 3:44 PM
raj soni
raj soni - avatar