+ 5

How do I add image to html code on sololearn

The image is not displaying

17th Jan 2022, 5:38 PM
Sundiler
20 Answers
+ 6
Your question is either too basic or you didn't express yourself well. Anyway, sharing the code where you have the problem is always a good idea.
17th Jan 2022, 5:46 PM
CGM
CGM - avatar
+ 3
You have to copy the address of the image, or "open it in a new tab" and copy the address. The address should take you only to the image, not to the page with the image. If you see a page, that is not the address of the image
17th Jan 2022, 5:53 PM
CGM
CGM - avatar
+ 2
Sundiler <img src=โ€œurlโ€ alt=โ€œโ€/>
17th Jan 2022, 5:43 PM
Junior
Junior - avatar
+ 2
Thanks but image is not displaying. It's the alt tag that is showing
17th Jan 2022, 5:44 PM
Sundiler
+ 2
Can you send the code?
17th Jan 2022, 5:45 PM
Junior
Junior - avatar
+ 1
<!DOCTYPE html> <html> <head> <title>Google web page</title> </head> <body> <header> <nav> <a href="#">gmail</a> <a href="#">images</a> <img src="https://images.app.goo.gl/gkXq7u5qv6TDLD6cA" alt="Google image"> </nav> </header> </body> </html>
17th Jan 2022, 5:46 PM
Sundiler
+ 1
https://icon-library.com/images/dot-icon/dot-icon-20.jpg This is the correct URL of the image!
17th Jan 2022, 5:48 PM
CGM
CGM - avatar
+ 1
Thanks I appreciate, but did you get it just incase next time
17th Jan 2022, 5:50 PM
Sundiler
+ 1
Thank you
17th Jan 2022, 5:56 PM
Sundiler
+ 1
Thanks
18th Jan 2022, 6:04 PM
Sundiler
+ 1
Sundiler No problem
18th Jan 2022, 6:04 PM
QuAd
QuAd - avatar
+ 1
Write <img src="URL" alt=" " > URL- write url of image of in this if your image in your pc ๐Ÿ–ฅ then copy path of image and paste it , if image on the internet then copy the image address ALT- This is optional , this is for if your image is failed to load in web browser due any reason so then the text will show you written
19th Jan 2022, 12:50 AM
Lakshay Kamat
Lakshay Kamat - avatar
0
alt="google image"/> Try this once or alt=""/>
18th Jan 2022, 4:53 PM
Bindhushree .G
0
I can help you
18th Jan 2022, 5:58 PM
QuAd
QuAd - avatar
0
Use the <img src=โ€œurlโ€ /> tag, hope this helps ๐Ÿ˜ƒ
18th Jan 2022, 6:16 PM
Chris
Chris - avatar
0
<img src="url" />
19th Jan 2022, 10:54 AM
martina scarpelli
martina scarpelli - avatar
0
Use the code below <img src="directorypath/image. jpg" />
19th Jan 2022, 3:21 PM
Dhanush J.A
Dhanush J.A - avatar
0
<img src="./image.jpg"/>
19th Jan 2022, 4:38 PM
Divine George
Divine George - avatar
0
<img src="url or jpg " alt=""/> now try it will come
8th Apr 2022, 3:02 PM
Jaiadarsh Ganeshbabu
Jaiadarsh Ganeshbabu - avatar