Hey can anyone please tell me why this IMG in this code is not showing. I have typed this IMG url correctly. In proper tags. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hey can anyone please tell me why this IMG in this code is not showing. I have typed this IMG url correctly. In proper tags.

https://code.sololearn.com/W7gleVVZcA5J/?ref=app. This is my code please tell me what's the error in this code. How I can display this IMG in my output.

28th Aug 2020, 11:33 PM
Sumit Sinha
Sumit Sinha - avatar
9 Answers
+ 5
Sumit it's becouse you need a direct link. In this case you are accessing to the HTML source and not image source like jpg, png, etc.
28th Aug 2020, 11:46 PM
CoffeeByte
CoffeeByte - avatar
+ 5
Sumit That page doesn't provide a direct link. You can download the image then craete a imgur account and upload your image then you can get a direct link.
28th Aug 2020, 11:49 PM
CoffeeByte
CoffeeByte - avatar
+ 3
It's because you need to specify image URL in the img tag Rather than specifying page URL
29th Aug 2020, 6:58 AM
KARTHIK
KARTHIK - avatar
+ 2
Pls check the link address.
28th Aug 2020, 11:39 PM
Cyber Nate
Cyber Nate - avatar
+ 1
copy/paste this into your code: <img src="https://wallpapercave.com/wp/KNiixrs.jpg" alt="Rabbits with lop ears in bars" width="203">
28th Aug 2020, 11:50 PM
Steven M
Steven M - avatar
+ 1
<img src = "https://wallpapercave.com/wp/KNiixrs.jpg" alt="Rabbits with lop ears in bars" width ="203px" height="203px"> You have pasted the link of page containing that image not the link of img.
29th Aug 2020, 1:49 AM
Divya Mohan
Divya Mohan - avatar
0
I have checked the link it showing correctly
28th Aug 2020, 11:40 PM
Sumit Sinha
Sumit Sinha - avatar
0
So how can I access the direct link or image soure. Please tell me ,
28th Aug 2020, 11:48 PM
Sumit Sinha
Sumit Sinha - avatar