Skip to content

images not loading on website #48051

Answered by airtower-luna
alfa121 asked this question in Pages
Discussion options

You must be logged in to vote

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:

        <img class="logo" src="images/img-tea-cozy-logo.png" alt="tea cozy logo">

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@alfa121
Comment options

@airtower-luna
Comment options

Answer selected by alfa121
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pages Host a static website, right from your repo Question
3 participants