Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Henry Blandon
.a{fill-rule:evenodd;}techdegree seal-36
Henry Blandon
Full Stack JavaScript Techdegree Graduate 21,485 Points

I can not switch back and forth between portfolio and about.

I open my file index.html it works then I click the About navigation button it works, but if I try to go back to Portfolio again it does not work.

2 Answers

This has probably something to do with the href in your navigation. If you want to go back from the about page to the portfolio page make sure the href points to the right html page.

In your project I guess the navigation should look something like this on all your html pages:

     <li><a href="index.html">Portfolio</a></li>
     <li><a href="about.html">About</a></li>
     <li><a href="contact.html">Contact</a></li>