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

What am I missing? <nav><ui></ui></nav> after the hyperlink in the heading tag.?i've tried formatting it many different

<header> <a href="index.html"> <nav> <ul> </ul> </nav> <h1>Nick Pettit</h1> <h2>Designer</h2> </a> </header>

I believe the directions were something like place a nav tag with an unordered list after the link in the header section. don't worry about adding list items or links just yet.

I've also tried adding list item tags inside of the unordered list tags but this did not work either. any help would be greatly appreciated. I feel I may not understand the directions very well.

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Nick Pettit</title>
  </head>
  <body>
    <header>
      <a href="index.html">
        <nav>
          <ul>
          </ul>
        </nav>
        <h1>Nick Pettit</h1>
        <h2>Designer</h2>
      </a>
    </header>
    <section></section>
    <footer>
      <p>&copy; 2013 Nick Pettit.</p>
    </footer>
  </body>
</html>

4 Answers

Mark Pryce
Mark Pryce
8,804 Points
<header>
  <a href="index.html">
    <h1>Nick Pettit</h1>
    <h2>Designer</h2>
  </a>

   <nav>
     <ul>
     </ul>
   </nav>
</header> 

It is asking you to post it after your link, or anchor tags. Good luck.

That did it Mark. thanks so much for your help.

Mark Pryce
Mark Pryce
8,804 Points

You're welcome, remember most tags have a closing tag, if an instruction asks to write after a specific tag in this case "link" make sure you look for the

</a> 

tag before writing your new code.

Happy coding.

Jehcy Adorna
Jehcy Adorna
386 Points

<nav> <ul> <li>Menu 1</li> <li>Menu 2 </li> </ul> </nav>

Jehcy Adorna
Jehcy Adorna
386 Points

<header>

<h1><a href="index.html">Nick Pettit</a></h1>
<h2>Designer</h2>

<nav> <ul> <li><a href="index.html">Home</a></li> <li><a href="#">About</a></li> </ul> </nav> </header>