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?
5 Answers
+ 2
Is the html file in the same folder as your image?
+ 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. ;-)
+ 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?
0
I don't think you do png, it's probably img, try that
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!!