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 trialbrolyen
4,605 PointsPortfolio linked to index.html but I still get an error
So I created this code but I still get this error: "The portfolio list item should link to "index.html"
I link that to index.html, even the preview show that right... what am I doing wrong?
<!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> </nav>
</ul>
</header>
<section></section>
<footer>
<p>© 2013 Nick Pettit.</p>
</footer>
</body>
</html>
3 Answers
Jennifer Nordell
Treehouse TeacherThere's two error here. Number one, your nav is supposed to end after your ul ends. Currently your nav starts before the ul starts and ends before the ul ends. Secondly, you're using the wrong kind of quotes. They must be the same kind of quotes as the ones used previously.
<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>
Hope this helps!
brolyen
4,605 PointsThanks!
Radu Alexandru Ursu
180 PointsHey, First of all check the tags <nav> and <ul> . You closed the navigation tag before the list one. And about your problem, you used different types of double [your commas > โ ] [ correct ones > " ] See the ones you put at meta charset=" " and compare those with those you have in the line you get error. :D