+ 1
How can i add image to my web page on sololern
adding image
16 Respostas
+ 7
@abraham Even if it was possible, it would mean granting some kind of public access to your device. Not really a good idea, especially for *this* community ;)
+ 6
1. Go to www.imgur.com
2. Upload your image
3. Use the auto-generated URL from there
4. #Likeaboss 😎
+ 1
That is not possible, because SoloLearn runs it's code on a server, not on your phone.
(To test this you can turn your internet off and try to run your code)
So when you type in <img src="/photos/p1.jpg"> The server will look under it's own runspace if it can find a photo like that.
+ 1
no it won't work try using any image hosting site and upload image there u will get the link for the image and then use it
+ 1
thank you all
+ 1
but how i wish i could use photo on my phone
+ 1
it should have an input tag as <input type="file" capture="camera">
0
<img src="https://www.w3schools.com/css/img_fjords.jpg"></img>
0
i mean image from my device
0
I guess another option would be to use drag and drop or select image. But it won't be permanent
0
ok
0
@Limitless drag n drop what's that?
0
xD ok that only works on PC
0
even that won't work on pc.. if u r running any IDE and if u drag an image in to it.. the image file will be read as a txt file and image file will turn into characters
0
You drag a picture into your page and drop it there
0
You'll need to use the right programming duh :P.
Facebook did it