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 trialDavid Shoup
5,974 PointsThis is VERY frustrating. What am I doing wrong? Challenge 1 of 3: "Create a navigation element with an unordered list..
"Create a navigation element with an unordered list element after the link inside the header. Don't add any list items or links just yet." My code is as follows: <body> <header> <a href="index.html"> <nav> <ul></ul> </nav> <h1> Nick Pettit</h1> <h2>Designer</h2>
I cannot get past the answer correction algorithm and the errors that it identifies are not precise enough.
15 Answers
Lush Sleutsky
14,044 PointsWell... care to type the code out again so that we may be of assistance?
David Shoup
5,974 PointsMr. Sleutsky, Thanks for responding.
The HTML disappears when I enter, even with the ''' before and after.
Please advise.
The code disappears after I type it in and hit the "Save Comment" button.
David Shoup
5,974 Points'''<body'''
'''<header>'''
'''<a href="index.html">'''
'''<nav>'''
'''<ul></ul>'''
'''</nav>'''
'''<h1>Nick Petit</h1>'''
'''<h2>Designer</h2>'''
idan ben yair
10,288 PointsYup, thats the one of the cons of the profession you will lose your mind over a missing semicolon hahahaha.
Just kidding, thats one of the reasons I love what I do, it always makes you think and be aware of yourself and your mistakes.
Henry Remache
11,005 PointsThis is the right code, they are asking you to put the unordered list after the anchor element.
<!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>
</a>
<nav>
<ul>
<li><a href="index.html">Portfolio</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<section></section>
<footer>
<p>© 2013 Nick Pettit.</p>
</footer>
</body> </html>
idan ben yair
10,288 PointsIt should look like this
<header>
<nav>
<a href="#"></a>
<ul>
</ul>
</nav>
</header>
You need to create your list inside the header tag, not the body. Let me know if that helped :)
David Shoup
5,974 PointsThen why did the instruction say "after the link", meaning the href line, right?
idan ben yair
10,288 Pointsyup, inside the header but after the link tag.
David Shoup
5,974 PointsI tried that. No workee.
David Shoup
5,974 PointsI am still throwing this error:" Bummer! Be sure your <nav> element is directly after the link in the header."
David Shoup
5,974 Pointsbody header a href="index.html" nav ul / ul /nav ....
The '''<''' and '''>''' were omitted intentionally, because the text disappears if they are included.
Gabriel Roczanski
Courses Plus Student 2,136 PointsCode Wrap your code with 3 backticks (```) on the line before and after. If you specify the language after the first set of backticks, that'll help us with syntax highlighting.
Example:
html YOUR CODE HERE
(
) <- without the parentesis to close your code
David Shoup
5,974 PointsI tried that. The code still disappeared.
Gabriel Roczanski
Courses Plus Student 2,136 PointsYou're doing wrong dude.
Check again, use (
) then html then give an BACKSPACE, your CODE, BACKSPACE and the (
) (without spaces and parentesis)
idan ben yair
10,288 Points<header>
<link href = "style.css" rel = "stylesheet" type = "css/text">
<nav>
<a href="#"></a>
<ul>
</ul>
</nav>
</header>
Make sure the list is after the link.
Lush Sleutsky
14,044 PointsI'm actually not 100% certain if it effects it or not, but the "type" attribute should be "text/css" and not "css/text"
Again, not sure if the way you wrote it works, but I think it has to be a certain way, no?
David Shoup
5,974 Pointshtml '''<body>''' '''<header>''' '''<a href="index.html">''' '''<nav>''' '''<ul> </ul>''' '''</nav>''' '''<h1>Nick Pettit</h1>''' '''<h2>Designer</h2>'''
html '''<header>''' '''<nav>''' '''<a href="index.html">''' '''<h1>Nick Pettit</h1>''' '''<h2>Designer</h2>''' '''</a>''' '''<ul></ul>''' '''</nav>''' '''</header>'''
Neither one works.
David Shoup
5,974 PointsAnd, of course, with all the time and trouble to type in both attempts at a solution with the triple single quotes, the html code disappears!!!!!
Lush Sleutsky
14,044 PointsAre you sure you are utilizing Markdown properly? Right under the box that you type in, there is a Markdown Cheatsheet, which should explain pretty simply how to add code into a forum post...
idan ben yair
10,288 Pointsyou are using ''' you are using the wrong thing its this symbol 3 times `
David Shoup
5,974 PointsQuite correct. I am not going to type it out a fourth time.
David Shoup
5,974 PointsI thank you all for your help. Still no solution. I will soldier on on my own until I get the solution.
Still not happy.
Peace. Out.
Lush Sleutsky
14,044 PointsIt is the backtick symbol to the left of the number 1
<p>code code code</p>
you just click that button on the keyboard 3 times, press space, write the word "html", (you do not need to put the word html into quotes) then press enter, write your code as you would in a text editor, using the proper HTML selectors, brackets, etc, then press enter again, and press the backtick button 3 more times..
idan ben yair
10,288 PointsHi Lush, you are right it does matter it should be text/css, chrome actually takes it and ignores this mistake but I had this error in one of my website and firefox could not understand the css and i had a few sleepless nights trying to figure it out lol.
Lush Sleutsky
14,044 PointsLol, I've had similar situations that were hair pulling. Just wanted to point it out just in case...
idan ben yair
10,288 Pointsyup that should do it!
David Shoup
5,974 PointsDavid Shoup
5,974 PointsBTW, the 6 lines of code that I typed in disappeared when I hit the enter key, leaving only Nick Pettit Designer.
'''<body> <header> <a href="index.html"> <nav> <ul></ul> </nav> <h1>Nick Pettit</h1> <h2>Designer</h2>'''