Ask coding questions

← Back to all posts
why arnt my images loading?
epicroblocgamer

<img src='kyrie.jpg'> ive added this along with file with all thee photos but it just come up with a black and white box with an x in it please help this is for a school project

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
0x7g
Mohammad-Yousaf
CsatoRoland69
cmaofficialcomp
JunhaoZhang1
SkywayDeveloper
Coder100
epicroblocgamer
Comments
hotnewtop
Coder100

Problem

Your images aren't loading because they are specified to the wrong location.
Your images are in https://html-final-project-1.epicroblocgamer.repl.co/images/...
But you didn't specify that, and instead, the images are pointed to https://html-final-project-1.epicroblocgamer.repl.co/...

Solution

Instead of

Change it to

Now the path will point to the correct location.

Suggestions

Since this is a final project, I guess your teacher taught you this, but some methods you have used are considered deprecated meaning outdated and are supported only because old websites use them.

  • <font> is deprecated in favor of css.

Error 2

You probably won't see anything bad about it physically, but in coding, it may have more detrimental effects eventually
LINE 6

The link tag is not closed.
The fix is

Please mark this answer as the correct one if it has helped you!

ShoryaMalani


that does the trick and if you add that to all of them, they will all fix.

Coder100

yay!
Happy coding! @ShoryaMalani

EclipseEevee

@Coder100 doesnt work for me.... im not even using css right now please dont bully me for it bcus its just a test project, but my image isnt loading... i did the exactly right file in the right folder, still isnt loading :/

Coder100
RohilPatel

I see this is a bad way of doing it. You need to do images/Kylie.jpg, since it's in a folder. Mark right if u have this work.