0

Why i can't display images?

<html> <head> <title> images </title> </head> <body> <h2> html images</h2> <img src="IMG_-mc89gu.jpg" alt="1pic"/> <img src="IMG_20191004_025832.jpg" alt="2 pic" width="100px" height="50px"/> <img src="wrong path"alt="picture with wrong path"/> </body> </html>

2nd Oct 2020, 6:09 PM
Nada
4 odpowiedzi
+ 2
Hi there! check out this link/ https://stackoverflow.com/questions/18413929/html-image-not-displaying-while-the-src-url-works And three simple reasons are below: 1.keep the image file and HTML file in the same folder. 2.The image does not have the same file name as specified in your IMG tag. 3.The image file is corrupt or damaged or the image file never actually got uploaded. hope u got the answer:)
2nd Oct 2020, 6:30 PM
LATEEF
LATEEF - avatar
+ 1
The html can't find the image source you're linking to. Link to an image url if you're using sololearn. If you're doing this on your computer use a correct path. https://code.sololearn.com/WwhhJrFdCNvN/?ref=app
2nd Oct 2020, 6:20 PM
Odyel
Odyel - avatar
0
actually I'm using this code on notepad on my phone, and I couldn't put the image file and html file in same folder.
2nd Oct 2020, 8:58 PM
Nada
0
Nada Idk how it is for iPhone but if you're using android you can see the path under the picture. I've never coded on my phone (other than sololearn) so idk if this'll work. https://www.sololearn.com/post/635188/?ref=app
2nd Oct 2020, 9:03 PM
Odyel
Odyel - avatar