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

When i click on the Portfolio link after setting up my About page, the Portfolio page shows this message : "Not Found"

Here's my code, i copied it straight from the index.html and followed along exactly so i'm not sure what i did wrong

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Omolewa Akinyode | Designer</title>
    <link rel="stylesheet" href="css/normalize.css">
    <link href='https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400italic,700,700italic,800' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="css/main.css">
  </head>
  <body>
    <header>
      <a href="index.html" id="logo">
        <h1>Omolewa Akinyode</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">

3 Answers

Everything looks to be correct. Have you tried closing the preview and reopening the preview to see if that works?

Only change I would make is add a space before class="selected" on your about nav link

Yes i tried closing and reopening but nothing changes. I can go from the about page to the contact page but the portfolio page still says "not found"

Hello, Omolewa Akinyode, I think if you write in this way, you can understand what should you have to code. like as: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Omolewa Akinyode | Designer</title> <link rel="stylesheet" href="css/style.css" media="screen"> <link href='https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400italic,700,700italic,800' rel='stylesheet' type='text/css'> </head> <body> <header>

                 <ul >                                       
                      <li class="active"><a href="index.html">Home</a> </li>  <!--Your main page-->
                      <li><a href="about.html">About</a></li>  <!--create about.html page with  DOCTYPE html to ul-->
                      <li><a href="contact.html">Contact</a></li>

                  </ul> 

</header> </body> </html>

Omolewa Akinyode, <li><a href="index.html">Portfolio</a></li> Here your portfolio page is index.html page, its a main page. so how you can find the portfolio . I think you have to change it. 1st you create a home page, the code is: <li><a href="home.html">Home</a></li> <li><a href="portfolio.html">Portfolio</a></li> In this way u will get your solution. thanks