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

Portfolio link not working

I am currently learning how to add new pages to my website via workspace.

I just finished making the about me page and when I click Portfolio link , I get the 404 error.

That is my home page

Do you see anything wrong with the coding?

      <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>

1 Answer

Alexander Martino
Alexander Martino
3,186 Points

Hey Michael,

Do you have closing tags for your ul and nav tags? Those might be messing things up.

Also, add a space between href="index.html" and class="selected".

You should also make sure that the file you are trying to link to is called index.html and is in the same folder as the page that you are linking from.

Capital I was the issue. Thanks for the response