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

Neither my index or contact page work?

Hi I have been following the lessons since the beginning. After finish my about page my portfolio and contact links no longer work? what do i do?

12 Answers

So where is your portfolio.html located?

Post the code that you used to create your about page.

<!DOCTYPE html>

<html>
  <head>
    <meta charset="utf-8">
    <title>William Simpson | Consultant</title>
    <link rel="stylesheet" href="css/normalize.css">
    <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="css/main.css">
  </head>
  <body>
    <header>
      <a href="index.html" id="logo">
        <h1>William G. Simpson</h1>
        <h2>Consultant</h2>
      </a>

      <nav>
        <ul>
          <li><a href="index.hmtl">Portfolio</a></li>
          <li><a href="about.html" class="selected">About</a></li>
          <li><a href="contact.html">Contact</a></li>
        </ul>
      </nav>
    </header>
    <div id="wrapper">
      <section>
      <img src="https://scontent-a-lga.xx.fbcdn.net/hphotos-frc3/t1.0-9/291855_10150266243107635_2648891_n.jpg" alt+"Photograph of William Simpson" class="profile-photo">
      <h3>About</h3>
        <p>Hi, I am William Simpson. This is my space where I intend to build a consulting web-site. When I am not building this I am either working in real estate in NYC or hanging out with my dog Ace!</p>
        <p>If you would like to follow me on twitter, my username is<a href="http://twitter.com/willthewinner"> @Willthewinner</a>.</p>
      </section>
      <footer>
        <a href="http://twitter.com/willthewinner">
        <img src="img/twitter-wrap.png" alt="Twitter Logo"class="social-icon"></a>

        <a href="http://facebook.com/willthewinner">
        <img src="img/facebook-wrap.png" alt="Facebook Logo"class="social-icon"></a>

        <p>&copy;  2014 William Simpson.</p>
      </footer>
    </div>  
  </body>  
</html>w

Do you have all your html files in the same folder?

im not sure...i think i have everything in the css folder.

Your file structure could be the reason why your links aren't working. Is any of the pages on your website working? if so, could you post the code here?

Everything is working except the portfolio page now and it is sending me to a page with a 404 area. The space on the left side of workspaces is in the following order:

How to make a website about.html contact.html css (folder) main.css normalize.css img (folder) all img files index.html

Wow, didn't realize I needed one. should have the same content as my index.html?

Not really. Your portfolio page should be a showcase of your skills.

Ok great. Thanks for your help!!! Is there a way to rate your help?

No, but you can click the "best answer" button on the part of the dialogue that helped you the most, so other forum members could see that your question was answered. Glad I could help you out!

Will do! Thanks man!