Hi is there anyway I can add a picture from my gallery directly to my html code?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hi is there anyway I can add a picture from my gallery directly to my html code??

https://www.sololearn.com/discuss/3272428/?ref=app

10th Apr 2024, 8:55 AM
BAMITEKO ADEIFE PRECIOUS
BAMITEKO ADEIFE PRECIOUS - avatar
3 Answers
+ 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
10th Apr 2024, 11:16 AM
Rain
Rain - avatar
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)
10th Apr 2024, 9:25 AM
Mihaly Nyilas
Mihaly Nyilas - avatar
0
save all files one folder (such as a HTML and image files) after add image name with extension for href destination.
10th Apr 2024, 9:30 AM
Uddeepana