Please why the images won't displayed in the web | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Please why the images won't displayed in the web

Problem in images display https://code.sololearn.com/WMPxctZPk3jI/?ref=app

4th May 2020, 1:08 AM
Amal Gil
Amal Gil - avatar
28 Answers
+ 3
The Sololearn codeplayground doesn't know where your image are stored. Therefore you should use an absolute url instead of a relative link
4th May 2020, 2:13 AM
Abdoul Hakim
Abdoul Hakim - avatar
+ 3
It seems you are using images from your PC folder you need a specific url for the image to load. For this you can use (imgur.com). Just upload your image on imgur.com and copy the url and paste it on your src attribute. Your image will get loaded very easily. This is the easiest way to do this. I Think it may help you.
5th May 2020, 11:44 AM
Shivraj Kumar
Shivraj Kumar - avatar
+ 2
Try to download an image hosting app in Playstore, you can get the image link directly to paste it in the src attribute
4th May 2020, 2:56 PM
Sobi Mohammed
Sobi Mohammed - avatar
+ 1
You should have given the image height as well... , I guess.
4th May 2020, 2:00 AM
Abdusamad Abdusattorov
Abdusamad Abdusattorov - avatar
+ 1
...I dunno then...
4th May 2020, 2:06 AM
Abdusamad Abdusattorov
Abdusamad Abdusattorov - avatar
+ 1
specify url address to images and not local.
4th May 2020, 9:23 PM
Denis Ivanov
Denis Ivanov - avatar
+ 1
U can make your image to link
5th May 2020, 7:59 AM
Mahfazzalin Shawon Reza
Mahfazzalin Shawon Reza - avatar
+ 1
Maybe you input wrong url link, or your file isn't in same path with your html file
5th May 2020, 1:30 PM
Ridho Lailatul Akbar
Ridho Lailatul Akbar - avatar
+ 1
David Dolejší you are right lol people will keep answering even if he got the answer.
5th May 2020, 6:50 PM
Samira
Samira - avatar
0
Maybe your images url is not correct.
4th May 2020, 1:54 AM
Samira
Samira - avatar
0
Samira no I checked it many times
4th May 2020, 2:03 AM
Amal Gil
Amal Gil - avatar
0
Abdusamad Abdusattorov I tried it but still not working
4th May 2020, 2:05 AM
Amal Gil
Amal Gil - avatar
0
amal 01 Do one thing install dropbox and upload your pic in dropbox.Then copy the link you get and paste it in src.
4th May 2020, 2:14 AM
Samira
Samira - avatar
0
No actually it is not working even on sublime text editor
4th May 2020, 2:24 AM
Amal Gil
Amal Gil - avatar
0
That why I do not know where the error exactly is
4th May 2020, 2:24 AM
Amal Gil
Amal Gil - avatar
0
amal 01 maybe the extension is not jpg maybe png or the name isnt correct
4th May 2020, 2:35 AM
Youssef Radid
Youssef Radid - avatar
0
amal 01 dont forget to put urs images in the same directory where ur html css files in
4th May 2020, 2:40 AM
Youssef Radid
Youssef Radid - avatar
0
Yousef Radid the images are in the same directory where my html,Css files are. The extension of both of the pictures are png
4th May 2020, 2:52 AM
Amal Gil
Amal Gil - avatar
0
AKR okay i gonna try,thanks guys
4th May 2020, 2:57 AM
Amal Gil
Amal Gil - avatar
0
Correct src parameter.. try uploading images on Google drive and use the shared link in src parameter..
4th May 2020, 4:45 PM
Nitin Mehra
Nitin Mehra - avatar