about the link of the image | SoloLearn: Learn to code for FREE!


about the link of the image

when i copied and pasted the link https://www.pexels.com/photo/wood-light-landscape-nature-247160/ iam unable to get the image of the tree .Can anyone explain?

6/2/2020 10:00:13 AM

Sadir Irfan

4 Answers

New Answer


Whenever you copy a link of an image to use in your code, make sure that the URL ends with an image file extension like .jpg or .png. Otherwise, definitely the link wont show any image. Somebody else please correct me if I am wrong.


Maybe this is a wrong link. here is the right link, this link will work on ur code try it👇 https://images.pexels.com/photos/247160/pexels-photo-247160.jpeg?cs=srgb&dl=wood-light-landscape-nature-247160.jpg&fm=jpg


Try out this link .... Try to select an image for the program that has link.. Meaning tap once on that image and see if it opens in a new window , then copy that link for coding. http://pngimg.com/uploads/tree/tree_PNG224.png After pasting this in your code. Then run the code and scroll up and down to search this image.


Thank you guys.. 😊