Github error 404

I made my repository and I got GitHub like of my site but whenever I try to go to the site i get error 404 says the file not found any help plz

1 Like

Links? Hard to help without seeing what you’re talking about.

1 Like

This is the link of my repo https://ammar1999-a.github.io/ but it just shows the name not the site so can u help plz

1 Like

Looks like https://github.com/ammar1999-a/ammar1999-a.github.io is the repository. The repository doesn’t have an index.html file, so by default the README is rendered.

I assume https://ammar1999-a.github.io/Accounting.html is what you want?

1 Like

Ok that’s right now I can see my site but what did do exactly and I also uploaded a css and JavaScript files in the repo why I can’t see them ? Just the html file is viewed

1 Like

I found out that when I write.HTML. It views the html doc and when I write.CSS it views the css doc but I want to view my whole project with HTML , CSS and JAVASCRIPT

1 Like

The paths with which the HTML file references the CSS and script files are wrong. Here’s what they look like in your HTML file:

<link rel="stylesheet" href="css/Accounting.css">
<script src="js/accounting.js"></script>

However, looking at the repository the files are in the same directory as the HTML file, not in css/ and js/ subdirectories. So the references should be:

<link rel="stylesheet" href="Accounting.css">
<script src="accounting.js"></script>
1 Like

Thank you so much now it’s working perfectly

2 Likes