images not loading on website #48051
-
Select Topic AreaQuestion BodyI can see the images of my website in my local server but this is not the case in github pages. Here are the repository and website: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
There's a path problem here: https://github.com/alfa121/codecademy-Tea_Cozy/blob/9d70705f0b8d08047e051ad1fc301500cbea3221/index.html#L14 That link is using an absolute path (starting with a slash), so the browser will look at <img class="logo" src="images/img-tea-cozy-logo.png" alt="tea cozy logo"> |
Beta Was this translation helpful? Give feedback.
There's a path problem here: https://github.com/alfa121/codecademy-Tea_Cozy/blob/9d70705f0b8d08047e051ad1fc301500cbea3221/index.html#L14
That link is using an absolute path (starting with a slash), so the browser will look at
https://alfa121.github.io/images/img-tea-cozy-logo.png
, which doesn't exist. Make it a relative path and it'll work: