Why the image isn't loading? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why the image isn't loading?

Hey! I've started learning web and wanted to display an image using <img> tag but whenever i use any link Like https://www.gettyimages.in/detail/news-photo/kobe-bryant-of-the-los-angeles-lakers-adjusts-his-jersey-news-photo/139369178 The image is not display,even if i give it height and width. And how do i get the URL of the Image instead of URL of page.

6th Feb 2021, 11:17 AM
Aditya
Aditya - avatar
1 Answer
0
It would be beneficial if you showed your code. Spelling mistakes are common errors. Also, make sure that your URL links directly to a picture. It can not link to a web page that happens to have a picture on it. When you click on the link it should only show a picture and nothing else.
6th Feb 2021, 1:07 PM
Adam Kollgaard
Adam Kollgaard - avatar