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

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>