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 Add a New Page

Kyle Deatherage
Kyle Deatherage
3,137 Points

Add a New Page----- 404 error

When I create a new file labeled about.html, the navigation will not work. I copied all of the code in index.html (ctrl+a) and pasted (ctrl+v) into about.html. I then saved the work and refresh my screen. When I use the about navigation I get a 404 error page. What is it that I am missing?

Calvin Nix
Calvin Nix
43,828 Points

Hey Kyle,

Could you post your code? The error is saying that it could not find the desired page.

Kyle Deatherage
Kyle Deatherage
3,137 Points

<!DOCTYPE html>

  <head>
    <meta charset="utf-8">
    <title>Linda's Flowers- Best in the Bloomin' Business! | Your Trusted Floral Shop located in Springfield Missouri--</title>
    <link rel="stylesheet" href="css/normalize.css">
    <link href='http://fonts.googleapis.com/css?family=Shadows+Into+Light+Two|Open+Sans+Condensed:700,300' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="css/main.css">
  </head>
  <body>
    <header>
      <a href="index.html" id="logo">
        <h1> Welcome to Linda's Flowers Website</h1>
        <h1>Exclusively for Corporate Accounts</h1>
        <h2>1255 W Battlefield | 417.883.6861</h2>
        <h2>Best in the Bloomin' Business!</h2>
      </a>
      <nav>
        <ul>
          <li><a href="index.html">Home</a></li>
          <li><a href="about.html" class="selected">About</a></li>
          <li><a href="contact">Conact</a></li>
        </ul>
      </nav>
    </header>
    <div id="wrapper">
      <section>

      </section>
      <footer>
        <a href="http://theflowerweb.com/"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a>
        <a href="http://theflowerweb.com/"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
        <p>&copy; 2014 Kyle Deatherage</p>
      </footer>
    </div>
  </body>
</html>```
Kyle Deatherage
Kyle Deatherage
3,137 Points

Thanks for taking a look Calvin. It may also appear I don't know how to post my code properly. Does it look it posted ok?

5 Answers

Calvin Nix
Calvin Nix
43,828 Points

Hey Kyle,

Don't worry about formatting your code right now. I went ahead and attempted to format it correctly but it keeps reverting the changes that I made. I believe this is an issue that the site is having... (That would explain the lag that I am experiencing as well)

I went ahead and alerted support though so it should be resolved soon.

Calvin Nix
Calvin Nix
43,828 Points

Hi Kyle,

I went ahead and made the changes to format your code better. Please see the "Markdown Cheatsheet" for references on how to post code so it is easier to read for future reference.

Is it possible that you don't have index.html and about.html in the same directory? That would explain why it is not able to be found.

Additionally, not sure if you are using "contact" as a place holder but you would want to specify the file path (e.g. contact.html).

Kyle Deatherage
Kyle Deatherage
3,137 Points

Thanks Calvin,

I do have quite a bit of lag on my end. I will attempt this a little later. Again, I appreciate you taking the time to take a look.

Joseph Alejandro
Joseph Alejandro
1,428 Points

I might add, did you checked that you linked your about anchor correctly?

Kyle Deatherage
Kyle Deatherage
3,137 Points

Thanks for all your help. I think the site was having an issue. I tried it again today and it is working just fine with no changes made to the code. Again thanks for everyone's help.