What the reason of empty output of this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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>

24th Oct 2020, 6:31 AM
RD:programmer
RD:programmer - avatar
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....
24th Oct 2020, 6:33 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 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
24th Oct 2020, 8:40 AM
Gordon
Gordon - avatar
+ 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
24th Oct 2020, 6:48 AM
Abhay
Abhay - avatar