+ 1
I've been trying to display a html image on my browser,but it won't just display and I don't know why.
<!DOCTYPE html> <html> <head> <title>Untitled</title> <meta charset="UTF-8"/> <link rel="stylesheet" href="" type="text/css"/> </head> <body> <div align= "center"> <img src="Screenshot_20200225-200205(1).png" width= "300" height= "300"> </div> </body> </html>
41 Respuestas
+ 8
Chisom David it wont work for an image from your phone here, except you host the image online,,
The easiest way to do that is to get a Dropbox app, upload your choice image on dropbox then copy the link an paste it on your image tag here and your image will show up..
+ 7
Did you close the body and HTML tag?
And also, does it display any image icon?
+ 4
Sure I did
+ 4
Yh it displays the img icon
+ 4
Then, it means that the image was not found..
+ 3
Does it display any image icon?
+ 3
You will have to give a proper path on your device.
+ 3
But why, cause I saved the image in the same folder with the html file
+ 3
How do I do that
+ 3
Try closing the img tag
+ 3
Ok
+ 3
Done but nothing changed ☹️
+ 3
If you are on your PC or laptop then check the console. You might find some information there. Press F12 to check the console.
+ 3
Am using my mobile phone
+ 3
Close the img tag
+ 3
Anchor an text to it, such as "waiting to load" , use (anc). If it shows this text, then the only explanation to this dilemma is that the file with the given link is non-existing.
+ 3
Ok thanks
+ 3
Chisom David please follow these instruction to upload image on sololearn
https://www.sololearn.com/discuss/1916050/?ref=app
https://www.sololearn.com/discuss/1690866/?ref=app
https://www.sololearn.com/discuss/1769473/?ref=app
https://www.sololearn.com/discuss/585973/?ref=app
+ 2
Chisom David I tried the code on my laptop. The code is working. Check if the path of the file is correct.
+ 2
1. Check the Syntax
2. Check the link
3. If the link works check if the image exists or is corrupted
4. If nothing works send me a msg