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 trial
paul kinsley
453 Pointshelp with ul li in nav
help with this
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Nick Pettit</title>
</head>
<body>
<header>
<a href="index.html">
<nav>
<ul>
<li>Portfolio</li>
<li>About</li>
<li>Contact</li>
</ul>
</nav>
<h1>Nick Pettit</h1>
<h2>Designer</h2>
</a>
</header>
<section></section>
<footer>
<p>© 2013 Nick Pettit.</p>
</footer>
</body>
</html>
3 Answers
Callum King
6,470 PointsHi Paul,
You'll need to provide a bit more information than that. You can use the Markdown Cheatsheet just below the answer box, which will tell you how to copy code into your forum messages.
James Barnett
39,199 PointsI put your code in codepen and your <nav> looks fine, so I'm not exactly sure what your question is.
However, I did notice one issue, you forgot to close your <a> element.
Callum King
6,470 PointsIf this is regarding the challenge Stage 3 - Creating HTML Content? The index link should only be wrapped around the h1 and h2 element and not your nav, your nav should be below your h1 and h2 elements sort of like this:
<header>
<a href="index.html">
<h1>Nick Pettit</h1>
<h2>Designer</h2>
</a>
<nav>
<ul>
<li><a href="index.html">Portfolio</a></li>
<li>About</li>
<li>Contact</li>
</ul>
</nav>
</header>
James Barnett
39,199 PointsJames Barnett
39,199 Pointspaul kinsley - I fixed the formatting with your code.
For future reference, the forum uses markdown to correctly format code, check out this thread on how to type code in the forum for some examples.