0
Hi is there anyway I can add a picture from my gallery directly to my html code??
3 ответов
+ 1
BAMITEKO ADEIFE PRECIOUS ,
No. HTML doesn't store images. HTML just tells the browser where they are stored, and the browser gets them from there when assembling the web page. So you have to store them somewhere first.
You can't save image files on Sololearn. To add a photo to a web page you make on Sololearn, you can first save it on one of the free file storage sites, such as
https://freeimghost.net/
and copy the URL it gives you. Then put that URL in the src attribute of the img tag in your HTML.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img
0
for example: <img> tag uses source, so you need to link your photo's location;
in this case: from your phone's location is not really possible (maybe just to work offline, and after to upload all to a server)
0
save all files one folder (such as a HTML and image files) after add image name with extension for href destination.