How to fix the broken image | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to fix the broken image

guys i copy link and paste the image from google in html but the output is an broken image .. how to fix it guys.. other image is ok but the one is broken

19th Feb 2018, 2:48 AM
Christian Jay Medallo
Christian Jay Medallo - avatar
7 Answers
19th Feb 2018, 2:51 AM
Christian Jay Medallo
Christian Jay Medallo - avatar
+ 2
that is the link.. and the output is a broken imagr
19th Feb 2018, 2:52 AM
Christian Jay Medallo
Christian Jay Medallo - avatar
+ 2
ahh so i direct it to the website not the image.. thanks now i know... Thanks bro
19th Feb 2018, 3:00 AM
Christian Jay Medallo
Christian Jay Medallo - avatar
+ 2
yep bro i just think that the link was directly connected to the image.. but it only directs to the website.. now i know why it is broken
19th Feb 2018, 3:04 AM
Christian Jay Medallo
Christian Jay Medallo - avatar
- 1
Could you provide a link to the code that has that problem? It'll just make it a little easier to debug with it d:
19th Feb 2018, 2:50 AM
Faisal
Faisal - avatar
- 1
The problem with the link is that you're not actually referring to the image, but rather the website itself. For the source of an image to work, it must be a direct link to the image, so that the program knows where it is being pointed to. Try using this link instead - https://img00.deviantart.net/ef3c/i/2011/098/2/1/deidara_sasori___nevermind_by_ireal70-d3dhtqg.jpg
19th Feb 2018, 2:59 AM
Faisal
Faisal - avatar
- 1
Well, vice versa. It must be a link to the actual image, not the website.
19th Feb 2018, 3:02 AM
Faisal
Faisal - avatar