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 trialTyrone Sunde
Courses Plus Student 6,379 PointsCreate 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>
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>
Adam Sackfield
Courses Plus Student 19,663 PointsStill no code. If easier head over to codepen.io or jsfiddle.net. Add it there and share the link with me :)
2 Answers
Jason Anello
Courses Plus Student 94,610 PointsThey want you to put the nav after the link in the header. You've placed the nav
inside the link.
Tyrone Sunde
Courses Plus Student 6,379 PointsThat was the problem. I put the code segment after the closing anchor tag and things worked just fine. Thanks for your assistance.
Jason Anello
Courses Plus Student 94,610 PointsYou're welcome
Adam Sackfield
Courses Plus Student 19,663 PointsAdam Sackfield
Courses Plus Student 19,663 PointsYour 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.
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