+ 2

How do i insert an image using html on sololearn...i have used the right src but it is still blank

16th Jun 2017, 8:11 PM
jared bada
4 Answers
+ 2
don't use your local filesystem. upload it to an image hosting website and use the URL you're given after the upload. the main problem is that you're using a relative path to your picture, but this starts from the file calling it. the file calling the image is on one of SoloLearn' s servers and doesn't know about your local storage. to leave that relative path you'll have to use a absolute path, including a protocol (on this case add file:/// at the beginning). but then no one else but you will see the picture. so, ignore that and get back to my first sentence. ;) hope that helps
16th Jun 2017, 8:27 PM
Mario L.
Mario L. - avatar
16th Jun 2017, 8:44 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 1
and don't forget the 'https://' . I had the same problem of inserting pics and it was all because of that
16th Jun 2017, 9:44 PM
Raz
Raz - avatar
0
For sololearn programs you can't put images stored on your device so you might have to use a CDN (content delivery network) to link images in the page or use data uri images by converting your images into text that HTML can display as a image.. You can convert your images here https://websemantics.uk/tools/image-to-data-uri-converter/ https://code.sololearn.com/WC54BZf4fJ94/?ref=app
4th Sep 2017, 3:04 AM
Kalo 'smi
Kalo 'smi - avatar