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

Henry Blandon
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Henry Blandon
Full Stack JavaScript Techdegree Graduate 21,521 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:

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