Skip to content
← Back to Community
why arnt my images loading?
Profile icon
epicroblocgamer

This file cannot be displayed: 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
Profile icon
Ripleyvines
Profile icon
Kvns8
Profile icon
0x7g
Profile icon
Mohammad-Yousaf
Profile icon
CsatoRoland69
Profile icon
cmaofficialcomp
Profile icon
JunhaoZhang1
Profile icon
SkywayDeveloper
Profile icon
Coder100
Profile icon
epicroblocgamer
Comments
hotnewtop
Profile icon
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

<img src="fordgt.png">

Change it to

<img src="images/fordgt.png">

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

<link rel="stylesheet" type="text/css"

The link tag is not closed.
The fix is

<link rel="stylesheet" type="text/css">

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

Profile icon
ShoryaMalani

Screenshot 2020-03-15 14.57.30
that does the trick and if you add that to all of them, they will all fix.

Profile icon
Coder100

yay!
Happy coding! @ShoryaMalani

Profile icon
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 :/

Profile icon
Coder100
Profile icon
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.