+1

Please, help. How to add picture in html? I can not do this😭!

3/28/2020 7:48:38 PM

SimpleCoder

3 Answers

New Answer

+6

Use the <img> tag Example : <img src="http://example.com/photo1. jpg" alt="img" /> Check this lesson about <img> tag: https://www.sololearn.com/learn/HTML/1030/

+4

https://www.sololearn.com/Discuss/1288998/?ref=app https://www.sololearn.com/Discuss/1916059/?ref=app

0

The image you provide a link to must be accessible by the server that serves the page. If you are attempting to link to an image on your phone the SoloLearn code playground server is unable to access that image and therefore cannot display it. If you create an html document on your phone, tablet, or computer and create a link to an image on your device it will probably be displayed on your device because the browser is using a file protocol to access it. However, browsers use an http protocol to communicate with web servers and that server has no access to your device, unless you are also running a server on that device.