I copied an url of an image on Google and paste it on my html code but the image doesn't displayed, why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

I copied an url of an image on Google and paste it on my html code but the image doesn't displayed, why?

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

6th Jul 2020, 10:39 AM
Sumedh Patil
Sumedh Patil - avatar
13 Answers
+ 4
Share your code for best results :) There might be a problem with your link and you might have copied the URL of the webpage. Just share your code by copying the code link from the code playground.
6th Jul 2020, 10:44 AM
Nilesh
Nilesh - avatar
+ 4
This is not the real link to the location of the image It is the reference of google to access the image. To access the image open the website that is hosting the image , then open the image in the new tab. There u will is the real link to the image
7th Jul 2020, 4:18 PM
Azimul Hasan
Azimul Hasan - avatar
+ 2
Please share code first. So, that we can help you
6th Jul 2020, 10:40 AM
Arctic Fox
Arctic Fox - avatar
+ 2
It happened because of an error in you code. There is supposed to be the file extension of the image, with jpg, png or etc <body> <img src="image.jpg" alt=" "/> </body>
7th Jul 2020, 1:36 PM
Chibundu Omoji
+ 2
best to save the picture and load it from server or local directory, but if u dont want to do that you probably should use free picture uploading websites and get a link with the right image extension like jpg or png
7th Jul 2020, 2:35 PM
Mahdi Ghorbanpour
Mahdi Ghorbanpour - avatar
+ 1
Check the files where u kept is same as the image is
8th Jul 2020, 9:09 AM
Rahid Ahmed
Rahid Ahmed - avatar
0
😉 Krishna 🤘 after long pressing, only two options are displayed that are 'download image' & 'share image' and I copied url from the share option but it doesn't contain ".png or .jpg"
6th Jul 2020, 11:01 AM
Sumedh Patil
Sumedh Patil - avatar
0
😉 Krishna 🤘 okay thanks for help🙏👍
6th Jul 2020, 11:01 AM
Sumedh Patil
Sumedh Patil - avatar
0
It happened because of an error in you code. There is supposed to be the file extension of the image, with jpg, png or etc <body> <img src="image.jpg" alt=" "/> </body>
7th Jul 2020, 10:05 PM
Amitabh Pandey
Amitabh Pandey - avatar
0
You Dont Give "/File Name" On Your Code, You Must Give File Name I HOPE THIS CAN HELP YOU
7th Jul 2020, 11:33 PM
Adjie Pramandana
Adjie Pramandana - avatar
0
For the image to display ensure the Google url ends with jpeg or png as the case may be. Any other url that does not have a jpeg or png ending tells you d link is not an img link hence when you use it on your html code you get nothing. I hope this helps
8th Jul 2020, 12:00 AM
Oki John
Oki John - avatar
- 1
😉 Krishna 🤘 Actually im trying it on my phone..
6th Jul 2020, 10:53 AM
Sumedh Patil
Sumedh Patil - avatar
- 2
Why get html code hack or recovery facebook
7th Jul 2020, 10:10 AM
Wincel Ocier
Wincel Ocier - avatar