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

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

George Kadar
George Kadar
2,721 Points

Same Problem As everybody else!

Right, everybody seems to be having this problem and I just can't figure it out! I'm working in Brackets. So when I create a new file and call it about.html, then I copy and paste everything from the index.html file to the about.html, then I open the preview, it's fine when I'm in the index.html, but when I navigate to 'about' it comes up saying 'this webpage is not found ERR_FILE_NOT_FOUND. please help somebody. Can't move further forward.

13 Answers

Abe Layee
Abe Layee
8,378 Points

You have to create the about page separately. Something like this

 <nav>
<ul>
   <li><a href="index.html">Home</a></li>
   <li><a href="about.html">About</a></li>
</ul>
</nav>
Julian Aramburu
Julian Aramburu
11,368 Points

Hi George! First of all it would be nice if you post your code within your question in order to look for further errors , spelling mistakes, etc that could be causing you trouble. Then I want to ask you where is your about.html file located regarding your index.html file, because it needs to be placed in the same folder in case that you are refering it as href="about.html".

George Kadar
George Kadar
2,721 Points

OK, so does that into the index.html file or the about.html file?

George Kadar
George Kadar
2,721 Points

It still doesn't make any sense, though, as I've literally just copied and pasted all the code that was in the index.html into the new file- about.html

Julian Aramburu
Julian Aramburu
11,368 Points

If both files are in the SAME directory and your link element is pointing to "about.html" in the href attribute , then when you open your index.html and click in the about link you should see the about.html page.

George Kadar
George Kadar
2,721 Points

Is there anyway I can send a screenshot on here?

Julian Aramburu
Julian Aramburu
11,368 Points

Upload your screenshot to some image hosting site like postimage and paste the link in here... BUT before doing that ...please check that your about.html file is named "about.html" and not "About.html" or something like that and that THAT name coincides with your href value...page names are case sensitive so its not the same About.html than about.html than AbOuT.html ...so maybe there's where your problems resides....

Julian Aramburu
Julian Aramburu
11,368 Points

Are you sure that you are actually storing index.html and about.html in the same directory? I'm asking this because I just downloaded Brackets and I created both index and about files and when I saved and tried the live preview, It didn't work at first but then I noticed that for some unknown reason the about file got saved somewhere else... but once I saved it in the same directory that the index.html file it worked fine for me (copying all the index page into the new about.html).

Julian Aramburu
Julian Aramburu
11,368 Points

You could also check what error you are getting when you try to get to the about page, so we can get a better idea about what's going on!

George Kadar
George Kadar
2,721 Points

Hi Julian. The index.html file wasn't in the same files as the others. You were right the first time. I had to drive round to see a guy I work with to ask him to show me.

Julian Aramburu
Julian Aramburu
11,368 Points

Glad you sorted it out :D! Keep going!