I am trying to insert a image in html but after the completion of process it is showing nothing why this is so? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I am trying to insert a image in html but after the completion of process it is showing nothing why this is so?

7th Jan 2021, 3:20 AM
SOUMYAKANT PARIDA
SOUMYAKANT PARIDA - avatar
6 Answers
+ 1
It's showing nothing in acode editor 😔
7th Jan 2021, 5:49 AM
SOUMYAKANT PARIDA
SOUMYAKANT PARIDA - avatar
+ 1
Your image and your html file should be in the same folder
7th Jan 2021, 9:20 AM
manvitha royal
manvitha royal - avatar
0
Can you share your code so that we can find the problem and help you to fix it.
7th Jan 2021, 3:24 AM
Bibek Oli
Bibek Oli - avatar
0
Ok
7th Jan 2021, 3:41 AM
SOUMYAKANT PARIDA
SOUMYAKANT PARIDA - avatar
0
<html> <head> <title>my blog</title> </head> <body> <img src="tree.jpg" alt=""/> </body> </html>
7th Jan 2021, 3:44 AM
SOUMYAKANT PARIDA
SOUMYAKANT PARIDA - avatar
0
SOUMYAKANT PARIDA if you are running this code in Sololearn playground, then you should know Sololearn cannot access files on your storage. You must upload it to some CDN like Dropbox or imgbb.com to use that image/ css/ js files in Sololearn. Or, you can use offline code editors like Acode Editor.
7th Jan 2021, 4:08 AM
Bibek Oli
Bibek Oli - avatar