So I'm trying to add a picture to my website atm and I'm new to this so I got this app. The image is a .pgn and even if I say <img src="thename.png" /> it doesn't work on the site. I've updated it from Filezilla obviously but it just shows a little jpg logo and doesn't display my pic. What am I doing wrong? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

So I'm trying to add a picture to my website atm and I'm new to this so I got this app. The image is a .pgn and even if I say <img src="thename.png" /> it doesn't work on the site. I've updated it from Filezilla obviously but it just shows a little jpg logo and doesn't display my pic. What am I doing wrong?

23rd Sep 2016, 2:19 AM
Gman902
5 Respuestas
+ 2
Is the html file in the same folder as your image?
23rd Sep 2016, 8:44 AM
Zen
Zen - avatar
+ 1
Only 2 reasons why the image will not load based on the provided tag line in your question: 1.) The file is not in the same directory as your .htm file 2.) The browser you're utilizing doesn't support .png image displays. I doubt the 2nd one is the cause of the issue however. Also note that self closing tags do not require a "/" at the end. This is arguable as some say it's "best practice" to do so. I leave that up for the debate forums to cause flame wars. ;-)
23rd Sep 2016, 1:35 PM
Christopher Elliott
Christopher Elliott - avatar
+ 1
I'm in this trouble too. but I dont know why? My syntax: <img src=" http://www.anhnen.info/vn/anh/anh-hoat-hinh/hinh-nen-hoat-hinh-tazan-ti-hon-mut-tay-dang-yeu.html/ 635057349-450-338.jpg" alt="" /> Did i make s.t wrong?
24th Oct 2016, 5:03 PM
bigbabol chicken
bigbabol chicken - avatar
0
I don't think you do png, it's probably img, try that
23rd Sep 2016, 3:11 AM
violet
0
I got it working thanks. The problem was that the site was being hosted on Linux, and Linux is case sensitive so when I would end it with .jpg or .png it was lower case and wasn't working. Thank you guys!!
23rd Sep 2016, 6:13 PM
Gman902