+ 2
How do i insert an image using html on sololearn...i have used the right src but it is still blank
4 Respuestas
+ 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
+ 2
Take a look:
https://www.sololearn.com/discuss/471791/?ref=app
+ 1
and don't forget the 'https://' .
I had the same problem of inserting pics and it was all because of that
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