In Image tag which is <img src="" />,how can I write path if I want to add a picture from mobile phone?Is path is only for PC? | Sololearn: Learn to code for FREE!

+1

In Image tag which is <img src="" />,how can I write path if I want to add a picture from mobile phone?Is path is only for PC?

10/26/2017 5:06:20 AM

Atif Iqbal

2 Answers

New Answer

+3

If you write the code in SoloLearn Code Playground that's impossible, the best bet would be to put your image on public image hosting, like imgur: https://imgur.com If you're doing it on your device, you may try to use relative path to refer to the image, read about relative path here: https://www.w3schools.com/html/html_filepaths.asp Hth, cmiiw

+1

I use imgbb to get public address works great for me.