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

CSS How to Make a Website Adding Pages to a Website Build the Contact Page

I'm watching the video "Build the Contact Page". Link from portfolio page won't take me to contact page. 404 message.

I'm watching the "Build the Contact Page" video. The link from the portfolio page to the contact page results in an error. My nav text for the portfolio page is:

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

rydavim
rydavim
18,814 Points

You'll probably need to post your code. Assuming you've already created the contact page, there is probably a minor typo in your link element to the new page. Sometimes it's difficult to spot those yourself in code you've written.

Thanks rydavim! I went back after posting the question and saved and refreshed (for the 3rd time) and it worked this time!

If you're getting a 404 Error on this level. You probably misspelled the name of a file or a link. In terms of case sensitivity, if you named your file "Portfolio.html" and you are linking with the lower-case version of the name <a href="portfolio.html">Portfolio</a>, you will trigger a 404 Error. To most browsers, "portfolio.html" does not exist although "Portfolio.html" does.

That's my guess, but you need to paste your code.

1 Answer

ugh...I'm learning the answer to why you/I get a 404 is so simple sometimes and staring us in the face. Was having the same issue with my contact page, because I forgot to put ".html" behind the word contact in my code...took me hours to finally see it was missing..