I have added an image to my html code.But the code is not showing the image. Why? The img is from google link. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I have added an image to my html code.But the code is not showing the image. Why? The img is from google link.

https://code.sololearn.com/Wij5iUbYUczi/?ref=app

11th Mar 2021, 10:46 PM
Mehbub Jevin
Mehbub Jevin - avatar
6 Answers
+ 1
Thank you ❤️
11th Mar 2021, 11:10 PM
Mehbub Jevin
Mehbub Jevin - avatar
0
Mehbub Jevin you doesn't put the closing double quote at your img src attribute value... that's why the image is not displayed at all (invalig tag, as unclosed also, because all the code next is considered as part of the string value ^^) however, even by fixing that, the image element will be displayed but not loaded: the url provided is not an image url, but a page url ;P [edit] your code with the real image url correctly wrapped in quotes: https://code.sololearn.com/WS8lYu82iIA6/?ref=app
11th Mar 2021, 11:01 PM
visph
visph - avatar
0
<ing src=" "<~ > You should always use images wich has the file type at the end. Like: ...google.PNG ..yahoo.JPEG Ir you are searching in Google Images, you can right click on image and "Copy Image Adress". Use this link but do not forgett the "" at the end and begin.
11th Mar 2021, 11:12 PM
▲TopGun ▲
▲TopGun ▲ - avatar
0
▲TopGun ▲ the file type as extention is no required, but the url must serve a image file (with correct mime type)...
11th Mar 2021, 11:15 PM
visph
visph - avatar
0
▲TopGun ▲ thank you so much. It has been solved ❤️
11th Mar 2021, 11:15 PM
Mehbub Jevin
Mehbub Jevin - avatar
0
visph Thank you so much. ❤️
11th Mar 2021, 11:15 PM
Mehbub Jevin
Mehbub Jevin - avatar