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

Ayman Saad
Ayman Saad
134 Points

web error

in my web when i click the about and contact it say not found and i copy what you did?

4 Answers

Emma Willmann
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Emma Willmann
Treehouse Project Reviewer

Can you post a copy of your html? We can look at it and let you know what might be wrong. There is a Markdown Cheatsheet under the comment/answer box that shows how to post code.

Ayman Saad
Ayman Saad
134 Points

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Ahmad saad | Designer</title> <link rel="stylesheet" href="css/normalize.css"> <link href='http://fonts.googleapis.com/css?family=Oswald:400,700' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/Untitled.css"> </head> <body> <header> <a href=“index.html" id="logo"> <h1>Ahmad saad </h1> <h2>Ahmad saad | 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="img/me.jpg" alt="Photogragh of Ahmad Saad" class="profile-photo">
  <h3>about</h3>
  <p>Hi, my name is Ahmad saad. I am 8 years old. When I was looking at all kinds of websites I decided to make one.just follow what I say. 1st make a title. 2nd create the pages. last publish. If you want to learn more just sign up teamtreehouse.com.I hope you to make your own website  </p>
</section>
<footer>
  <p>&copy; 2014 Ahmad Saad.</p>
</footer>

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

Hi Ayman,

You may have a blank href, a non-existing file reference in your href attribute, or an invalid web address typed into the href attribute for your <a> link. Check to make sure that the href attribute points to an existing file on your PC (and is spelled correctly), points to a valid web address ex. "http://www.teamtreehouse.com", or contains a # sign so that you will not get an error when you click on it. An empty # sign can be used a placeholder so that your page won't try to load another page when you click on the link, and you can test how any CSS applied to the link looks when you interact with it.

If that answer helped you out, I wouldn't mind getting the Best Answer selected. :) Thanks!

I can't possibly understand why that answer deserves a down vote...

Ayman Saad
Ayman Saad
134 Points

that was unintentional!

Emma Willmann
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Emma Willmann
Treehouse Project Reviewer

Check the links after your href. The links should be surround in quotes, but instead have a accented a around them. Should look like this:

<header>
    <a href="index.html" id="logo">
  <h1>Ahmad saad  </h1>
   <h2>Ahmad saad | 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>
Ayman Saad
Ayman Saad
134 Points

its still not working.

Emma Willmann
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Emma Willmann
Treehouse Project Reviewer

Have you created your about.html and contact.html pages? And, if yes, are they in the same folder that your index.html file is in?