How do I add image to html code on sololearn | Sololearn: Learn to code for FREE!

+5

How do I add image to html code on sololearn

The image is not displaying

1/17/2022 5:38:15 PM

Sundiler

20 Answers

New Answer

+5

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.

+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

+3

Example: https://code.sololearn.com/WpblYUcbBoSk/?ref=app https://code.sololearn.com/Wj736cbSClGN/?ref=app https://code.sololearn.com/Wcqv779zvUSQ/?ref=app

+2

Sundiler <img src=“url” alt=“”/>

+2

Thanks but image is not displaying. It's the alt tag that is showing

+2

Can you send the code?

+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>

+1

https://icon-library.com/images/dot-icon/dot-icon-20.jpg This is the correct URL of the image!

+1

Thanks I appreciate, but did you get it just incase next time

+1

Thank you

+1

Thanks

+1

Sundiler No problem

+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

0

alt="google image"/> Try this once or alt=""/>

0

I can help you

0

Use the <img src=“url” /> tag, hope this helps 😃

0

<img src="url" />

0

Use the code below <img src="directorypath/image. jpg" />

0

<img src="./image.jpg"/>

0

<img src="url or jpg " alt=""/> now try it will come