Need some help with the image display. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Need some help with the image display.

I coded a html document in which I included the img tag with its src="" and alt="" attributes. I tried to include an image from the internet, so I went to the image, and copy and pasted the image's url (not the web's one) to the src, but it still won't appear. Why ? https://code.sololearn.com/W5BEB4Dp2btV/?ref=app https://code.sololearn.com/WnP23av9rrs6/?ref=app

7th May 2019, 2:52 AM
Xeltion
Xeltion - avatar
2 Answers
+ 1
That is the url to the image page on Google, not the image itself. Right click on it and do open image in new tab and that will get you the image by itself. Watch out for this... lots of image searches do this. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTiBjnCHmg6X7YGEZ4vY_sYT1bcYtwzFYDFujnWyyOhCmzuV_421w Is the actual url to the image.
7th May 2019, 3:45 AM
Adam
Adam - avatar
+ 2
@Adam It actually works, thanks a lot
7th May 2019, 4:17 AM
Xeltion
Xeltion - avatar