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 trialMichael Barnette
614 PointsPortfolio 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?
<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>
1 Answer
Alexander Martino
3,186 PointsHey 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.
Michael Barnette
614 PointsMichael Barnette
614 PointsCapital I was the issue. Thanks for the response