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 trialRamkumar Arutla
Courses Plus Student 214 PointsEven i type right, I couldn't move next. Please, could some one help me.
The error msg: add portfolio to list item.
<!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>
<nav>
<ul>
<li>Portfolio</li>
<li>About</li>
<li>Contact</li>
</ul>
</nav>
</nav>
</header>
<section></section>
<footer>
<p>© 2013 Nick Pettit.</p>
</footer>
</body>
</html>
4 Answers
Sara Chicazul
7,475 PointsThe error Treehouse is giving you is not the actual problem. The problem is that you have two nav
tags, one inside each other. Look at the code Akshay posted, do you see how it only has one nav
tag? Try it like that.
Sara Chicazul
7,475 PointsLook closely at your nav
element. Do you remember how many there are supposed to be?
Edit: sorry, I forgot a word so my answer didn't make sense!
akshaythakur
Courses Plus Student 34,019 Points<!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>Portfolio</li> <li>About</li> <li>Contact</li> </ul> </nav> </header> <section></section> <footer> <p>Ā© 2013 Nick Pettit.</p> </footer> </body> </html>
Why u want 2 nav??
Ramkumar Arutla
Courses Plus Student 214 PointsGuys, I couldn't find what is wrong. I Inserted a nav tag with ul command with list . It is showing a error msg as add portfolio to the list. But I had already added It.
Ramkumar Arutla
Courses Plus Student 214 PointsThank you very much.
Sara Chicazul
7,475 PointsSara Chicazul
7,475 PointsThe reason Treehouse sometimes gives the wrong error is because computer error checkers are not smart! It knows there should be a
nav
tag, followed by a list item that says Portfolio. Instead it saw anothernav
tag, and it just stopped there to say "this line is wrong!" The error checker is not smart enough to notice that you put the correct line somewhere else in the code, or to change the error message to tell you exactly what you did wrong.