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

Tyrone Sunde
PLUS
Tyrone Sunde
Courses Plus Student 6,379 Points

Create a navigation element with an unordered list element after the link inside the header. D

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

Your code appears to be missing. See the MarkDown CheatSheet for tips on including code but here is my attempt to clarify how to embed code.

    ```
         code goes here
    ```

You want a blank line, then 3 of those little tick things (to the left of the top 1 button on my keyboard), then a new line, then your code indented 4 spaces and finally another 3 magic ticks. Optionally you may add the language eg HTML after the first 3 magic ticks to add syntax highlighting

Tyrone Sunde
Tyrone Sunde
Courses Plus Student 6,379 Points
    I can't get the code to pass the task test.  Below is a section of my code.
    <header>
      <a href="index.html" >
        <nav>
          <ul></ul>        
        </nav>
        <h1>Nick Pettit</h1>
        <h2>Designer</h2>
      </a>
    </header>

Still no code. If easier head over to codepen.io or jsfiddle.net. Add it there and share the link with me :)

2 Answers

They want you to put the nav after the link in the header. You've placed the nav inside the link.

Tyrone Sunde
PLUS
Tyrone Sunde
Courses Plus Student 6,379 Points

That was the problem. I put the code segment after the closing anchor tag and things worked just fine. Thanks for your assistance.

You're welcome