Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website Adding Pages to a Website Add a New Page

Raymond Rowe
Raymond Rowe
6,174 Points

Error 404 when clicking on about page in nav

when i launch the preview of the index.html file i get the page but in the navigation when i click on about i get the 404 error message

Tim Trott
Tim Trott
2,945 Points

It would be best if I could see your code, can you share your code? If I had to guess on what was wrong I would say that maybe you linked it to the wrong file (possibly the wrong folder as well) or you spelled something wrong.

Paul Sullivan
Paul Sullivan
7,876 Points

I'd have to agree with Tim Trott. Though, I'd also check for punctuation that may have been left off, such as a quotation mark or equals sign.

You probably left the href attribute of the anchor tag blank or it is typed incorrectly (<a href="").

But yes, a share of the code would be much better to point the problem.

Lorenzo Pieri
Lorenzo Pieri
19,772 Points

Yeah, it's probably something with the <a href="#">Your Page</a>

Raymond Rowe
Raymond Rowe
6,174 Points

Ok where do i share my code to?

1 Answer

Christopher Leonard
Christopher Leonard
11,172 Points

If you mean that you are previewing your index.html page by dragging it into your internet browser window, then yes you won't be able to click on your navigation links to get to the other pages of your site.

To preview those other pages of your site you will need to also drag those files into your internet browser window. You won't be able to navigate to your other pages via the nav links until you've FTP'd (uploaded) your site to the actual internet.