CSS, Javascript and Images not loading in GitHub pages

Viewed 809

My Portfolio loads perfectly fine when I open on my local machine, But when am trying to create a GitHub page non of the links works apart from the HTML. I used the GitHub pages on different projects earlier, it works absolutely fine but it doesn't load here, can anyone help me out. I tried various ways still it's the same.

Thank you

Here is my GitHub link https://github.com/Stellah-Avanthi/Portfolio-Project, I created a repo, But it doesn't seem to load on GitHub pages

1 Answers

In the second case, you are referencing your css files as:

        <link rel="stylesheet" href="css/normalize.css">
        <link rel="stylesheet" href="css/custom.css">

But you don't have a css folder in your repository.
So none of your stylesheet is loaded.

In the first site, you are using

    <link rel="stylesheet" href="styles.css">

That works just fine, considering style.css is right next your index.html file.

Related