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 trialCLAPOS ZIWEWE
9,529 PointsHOW DO I LINK THE 3 LIST ITEMS, PORTFOLIO, ABOUT AND CONTACT? I AM STUCK ON 3/3
Link each of the three list items. Portfolio should go to “index.html”, About should go to “about.html”, and Contact should go to “contact.html”.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Nick Pettit</title>
</head>
<body>
<header>
<a href="index.html">
<nav>
<ul><a>unordered</a>
<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>
<h1>Nick Pettit</h1>
<h2>Designer</h2>
</a>
</header>
<section></section>
<footer>
<p>© 2013 Nick Pettit.</p>
</footer>
</body>
</html>
CLAPOS ZIWEWE
9,529 Pointsthanx very much, you highlighted my mistake and i corrected it
1 Answer
ve
5,048 PointsThat's just a small mistake: Your <nav>-Element should come after the first <a>-Element inside the <header>. So move that out of the first <a> and put it behind it:
<!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><a>unordered</a>
<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>
CLAPOS ZIWEWE
9,529 Pointsthanx very much, it has been helpful
Corey Johnson
Courses Plus Student 10,192 PointsCorey Johnson
Courses Plus Student 10,192 PointsDouble check the placement of your <nav>. The instructions say to add the navigation AFTER the link to index.html.. you are adding it inside the link. So basically move your entire <nav> block, including the <ul> and list items.. under the closing </a> for the first index.html href used to link the designers name H1 and H2 tags.
Hope this helps.