img src not working | Sololearn: Learn to code for FREE!


img src not working

So, I created a pixel art character and wanted to use it in my js game. I used this: <img src="" style ="width:50px;height:50px;"> however, it never came up with the image. What is the cause and how can I resolve it?

1/6/2019 8:50:41 AM


3 Answers

New Answer


You have to link the image not page containing it. It has to be smt like this: (just example) not (note the extension).


Here for your study


That is a webpage link, not a image link, image normally ends with image file extensions, eg. jpg, gif, png. Try this