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

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