0
Why am I unable to add an image in my code on Sololearn code playground?
Nothing's wrong with my code but the image just doesn't show up in the output. I don't know whats wrong. https://code.sololearn.com/Wb8dsYzyvSrR/?ref=app
6 Answers
+ 7
This will help you:
https://code.sololearn.com/WSLZPpBIFgr7/?ref=app
+ 6
Your picture is hosted on your local device, it wont work unless upload it.
You can use dropbox or google images as Elisaveta đ mentioned or, i find this the easiest
<https://imgbb.com>
+ 4
Images
https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Images_in_HTML
audio:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio
video:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
How To Upload your phone images on SoloLearn using phone
https://code.sololearn.com/WT3661NHpV3B/?ref=app
Upload content with Dropbox [Tutorial]
https://code.sololearn.com/WW6t4B73kJVz/?ref=app
How to host/upload an image (IMGBB way)
/by Farhanaz/
https://code.sololearn.com/Wy3lrXNwGsgJ/?ref=app
Upload content with Google drive
https://code.sololearn.com/Wa25A17a19a1/?ref=app
+ 3
Check the URL of the image... It's showing the image it's probably from your pc or phone so it won't show to any other person.
As advice you can upload it to Dropbox or Google images for example so it will be available no matter the times you check it.
+ 2
Imgur
0
I think it is due to fact that your code is on sololearn server and image in your device. There is something wrong in getting url properly. Because the way u are using it is good if code and image both on your device. Couldn't it be a possible reason?