Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML

I uploaded my website and the main page works fine the contact and about pages have an error 404 not found

I couldn't view these pages even in the workspaces preview and am puzzled. I have looked at the pages to see errors but at this point I have no explanation

Can you post your code? It's probably just a misspelled link or something.

<html> <head> <meta charset="utf-8"> <title>Derrick Elgin | Designer </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"> <link rel="stylesheet" href="css/responsive.css"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <header> <a href="index.html" id="logo"> <h1>Derrick Elgin</h1> <h2>Designer</h2> </a> <nav> <ul> <li> <a href="index.html">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="images/derrick.jpg" alt="Photograph of Derrick Elgin" class="profile-photo"> <h3>About</h3> <p> Hello I'm Derrick Elgin This is my design portfolio where I share all of my work created to date. When I'm not designing I am a cook full time for the Department Of Defense Navy Northwest Region. I am married and have a daughter and two four legged kids a Norwegian Elkhound and a long haired Daschund.</p> <p>If you would like to follow me on Facebook, My username is <a href="https://www.facebook.com/derrickelgin">Derrick Elgin</a></p> </section> <footer> <a href="https://www.facebook.com/derrickelgin"><img src="images/facebook-wrap.png" alt="Facebook Logo"class="social-icon"></a>

          <p>&copy; 2015 Magic Moose Web Design</p>

        </footer>
      </div>
        </body>
</html>

I took out doctype tag to post the code it was doing strange things to the page when I left it in to post

I notice you have About.html and Contact.html beginning with capital letters. Chances are, if you change them to all lowercase, it'll work. Some servers are picky like that. However the file name appears in the folder, that's how it should be written in any links pointing to it.

Thank you very much for your help greatly appreciated!

2 Answers

Marcus Quarles
Marcus Quarles
14,598 Points

I agree with eddie on this one its probably the capitalization in your Contact.html and About.html pages. Make sure you have both spelled the same in your directory and code.

it comes up ok on my mobile phone however there are some errors in the contact page that I cannot figure out where I have made my errors part of the code reads on the mobile page still does not come up at all on my desktop meaning the about pages and the contact page hope I have made sense of my issue thanks again for your assistance