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

Sahil Reddy
Sahil Reddy
940 Points

New Page

When I copied the index.html and put it in the about.html, I tried clicking on the about link as the video said and it didn't change to about.html. I even checked the URL to see if it changed

Inge L
Inge L
30,058 Points

Can you provide a code snippet?

2 Answers

Check your index.html file to see if you set your about link to the about.html file

Poul Larsen
Poul Larsen
5,902 Points

Remember to copy the al the code from index.html to the about.html.

<!-- navigation for index.html -->
      <nav>
        <ul>
          <li><a href="index.html" class="selected">Portfolio</a></li>
          <li><a href="about.html">About</a></li>
          <li><a href="contact.html">Contact</a></li>
        </ul>
      </nav>
<!-- navigation for about.html -->
      <nav>
        <ul>
          <li><a href="index.html">Portfolio</a></li>
          <li><a href="about.html" class="selected">About</a></li>
          <li><a href="contact.html">Contact</a></li>
        </ul>
      </nav>