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 Creating HTML Content Create Navigation with Lists

Phillip moua
seal-mask
.a{fill-rule:evenodd;}techdegree
Phillip moua
Front End Web Development Techdegree Student 679 Points

Am I missing something in creating navigation?? Says <nav> needs to be directly under header.

Not sure if Im missing anything

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Nick Pettit</title>
  </head>
  <body>
    <header>
      <a href="index.html">

        <h1>Nick Pettit</h1>
        <h2>Designer</h2>
       <nav>
         <ul>
           <li></li>
         </ul>
       </nav>  
      </a>
    </header>
    <section></section>
    <footer>
      <p>&copy; 2013 Nick Pettit.</p>
    </footer>
  </body>
</html>

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! You're doing great, but I feel like you may have misunderstood part of the instructions. The instructions ask you to make the <nav> element after the link inside the header. Remember, we make links with the anchor tag or <a>. So your nav element shouldn't come until after the closing </a>. On a side note, the challenge also explicitly asks that you not add any list items for Step 1.

Hope this helps, but let me know if you're still stuck! :sparkles:

Phillip moua
seal-mask
.a{fill-rule:evenodd;}techdegree
Phillip moua
Front End Web Development Techdegree Student 679 Points

So now it's saying Bummer! The Portfolio list item should link to "index.html". Not entirely sure what i Did wrong.

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Nick Pettit</title>
  </head>
  <body>
    <header>
      <a href="index.html"></a>
        <nav>
          <ul>
            <li><a href="index.html"></a>Portfolio</li>
            <li><a href="about.html"></a>About</li>
            <li><a href="contact.html"></a>Contact</li>
          </ul>
        </nav>  
        <h1>Nick Pettit</h1>
        <h2>Designer</h2>


    </header>
    <section></section>
    <footer>
      <p>&copy; 2013 Nick Pettit.</p>
    </footer>
  </body>
</html>

Moderator edited: Markdown added to code to properly render in the forums.

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi again! This is along the same lines as the problem before. The link ends with the </a>tag. Take a good look at your code. Portfolio comes after the link has already ended. Try moving the placement of the </a> tag. This is also true for your other links :smiley: