0

How to put a picture

I'm trying to put a picture in my code I'm using <img src="whatever the pic name.jpg"/> but it's not working. I know that on the Computer the image has to be in the same file as the html file so how does it work on a phone the pictures are on a sd card not stored on device

24th Aug 2017, 12:19 AM
Kelly Lazrovich
Kelly Lazrovich - avatar
6 Answers
+ 6
"file:///mnt/sdcard/picture.jpg" or wherever that picture/path is. Try obtaining the path through a local file browser.
24th Aug 2017, 12:56 AM
Hatsy Rei
Hatsy Rei - avatar
0
pic can be anywhere that has a Web address....try img style="z-index:99999999:" to put the pic on top of other things if this is your problem
24th Aug 2017, 1:20 AM
Sam Tezel
Sam Tezel - avatar
0
I tried inputting the path still doesn't work I even tried using a picture stored on the device. Got any other advice?
24th Aug 2017, 2:06 AM
Kelly Lazrovich
Kelly Lazrovich - avatar
0
the picture needs to be on the hosting server or any web site you will need to upload the picture to a domain hosting server...for instance if you lookup dog in google and go to pics and right click and copy address, that address is what you put into img src ="thewebaddressofthepicthatworksintheaddressbar"
24th Aug 2017, 2:17 AM
Sam Tezel
Sam Tezel - avatar
0
ok thanks I'll try it
24th Aug 2017, 2:19 AM
Kelly Lazrovich
Kelly Lazrovich - avatar
0
so how do i do that on a phone
25th Aug 2017, 8:01 AM
Kelly Lazrovich
Kelly Lazrovich - avatar