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

Barbara Orts
Barbara Orts
10,584 Points

404 Not found

I am doing exactly what I was doing before with my About page and I get the message of 404 Not found when I click on the Contact page.

<li><a href="index.html">Portfolio</a></li> <li><a href="about.html" >About</a></li> <li><a href="contact.html" class="selected">Contact</a></li>

I am stuck! sorry!

4 Answers

Can you post the entire HTML document on Codepen.io or with the Markdown symbols? Would be very helpful.

Be sure your file path is set correctly, and be sure the file actually exists.

Barbara Orts
Barbara Orts
10,584 Points
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Nick Pettit | Designer</title>
    <link rel="stylesheet" href="css/normalize.css">
    <link href='http://fonts.googleapis.com/css?family=Pacifico|Varela' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="css/main.css">
  </head>
  <body>
    <header>
      <a href="index.html" id="logo">
        <h1>Nick Pettit</h1>
        <h2>Designer</h2>
      </a>
      <nav>
        <ul>
          <li><a href="index.html">Portfolio</a></li>
          <li><a href="about.html">About</a></li>
          <li><a href="contact.html" class="selected">Contact</a></li>
        </ul>
      </nav>
    </header>
    <div id="wrapper">
      <section>
        <h3>General Info</h3>
        <p>Blablabkabkabla</p>
        <p>more blablablabla</p>
      </section>
       <section>
         <h3>Contact details</h3>
         <ul class=Contact-details>
          <li class="phone"><a href="tel:555-6425">555-6425</a></li>
          <li class="mail"><a href="mailto:nick@example.com">nick@example.com</a></li>"
          <li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name=nickrp">@nickpr</a></li> 
         </ul>
      </section>
      <footer>
        <a href="http://twitter.com/nickrp"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a>
        <a href="http://facebook.com/nickpettit"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
        <p>&copy; 2014 Nick Pettit.</p>
      </footer>
      </div>
  </body>
</html>
Peng Chen
Peng Chen
4,955 Points

I got the same problem

same problem

Are you working in Workspaces, Jeremy?