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 Build the Contact Page

my link to contact and about page lead to 404 error pages

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

2 Answers

Jason Montoya
Jason Montoya
6,550 Points

Brianne,

Try posting your HTML so we can see where the error may be.

This might help though:

<a href="contact.html">Contact Page</a>
<a href="about.html">About Page</a>

i found the issue, but now when im on my portfolio page the link up top disappears and you can only see the about and contact links.

Jason Montoya
Jason Montoya
6,550 Points

Brianne,

Hopefully you solved the issue. In case you didn't, this may help: (assuming the portfolio page is the main page of site)

<a href="index.html">Portfolio Page</a>

In the previous reply I just posted code to cover the issues with the contact and about page links not working correctly.

If you want a link for the portfolio page in the same sequence of links, just add this code to the previous code like this:

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

Anyway, hope this helps.

PS. if you have the HOME page setup as portfolio.html, just swap out index.html with portfolio.html and you should be golden