0
What the reason of empty output of this code?
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <img src ="IMG_20201024_115727.jpg" alt=" "> </body> </html>
3 Answers
+ 6
Maybe the browser doesn't support ur image.
Try writing something in the alt tag. So it will display atleast some text....
+ 4
You need to upload your image to internet so that the others can see it. There are two free hosts :
How to host an image, the imgbb way, by Farhanaz đ
https://code.sololearn.com/Wy3lrXNwGsgJ/?ref=app
[Tutorial] Upload content from your device to CodePlayground - The Dropbox way
https://code.sololearn.com/WW6t4B73kJVz/?ref=app
+ 3
Rinku Das
For ur code the html file and the image file should be in the same directory or folder
Because u didn't give the complete url of image
like www.dropbox.com/Rinku/dp.jpg