Img | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Img

Can anybody help me ? I am unable to attach image file from my device. This is the code I am using in body <img src="forhtml/ganstas.jpg"> Html is folder name and Gangstas.jpg is name of image.

30th Aug 2022, 1:05 PM
Ravi Kshiwak
Ravi Kshiwak - avatar
6 Answers
+ 3
In Sololearn code playground, you can't import image from local storage. Eg: <img src="forhtml/ganstas.jpg"> But you can add image from cloud Eg: <img src="https://www.w3schools.com/images/w3schools_green.jpg">
30th Aug 2022, 1:09 PM
Sreeju
Sreeju - avatar
+ 1
Are you trying to attach the image from your device to a code on sololearn playground? It won't work, as sololearn playground does not have access to your local storage.
30th Aug 2022, 1:09 PM
Lisa
Lisa - avatar
+ 1
If the image is in local storage it wont work on sololearn unless you are getting the image from the internet then you can use the image‘s URL.
31st Aug 2022, 11:33 PM
Malugamba
0
Thank you all for response
30th Aug 2022, 5:06 PM
Ravi Kshiwak
Ravi Kshiwak - avatar
0
😒😒😒
31st Aug 2022, 5:17 AM
Alexander von Croy