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 trialLiam Hamel
Courses Plus Student 204 PointsNavigation Element not working
When I launch the preview to see if the header elements have turned into links, they haven't. Code looks exactly the same as in the video, and I have tried multiple browsers with the same result.
3 Answers
Milo Winningham
Web Development Techdegree Student 3,317 PointsLooks like in each link you accidentally typed herf
instead of href
for the attribute name.
Jamie Mulcahy
Courses Plus Student 7,069 PointsHard to say without seeing the code... are you sure the anchor element contains content/is it wrapping something?
Liam Hamel
Courses Plus Student 204 Pointsthis is my code
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Clementine Brass |Just Brass Tax</title> </head> <body> <header> <a herf="index.html"> <h1>Liam Hamel</h1> <h2>Just Brass Tax</h2> </a> <nav> <ul> <li><a herf="index.html">Portfolio</a></li> <li><a herf="about.html">About</a></li> <li><a herf="contact.html">Contact</a></li> </ul> </nav> </header> <section> <p>Gallery Will Go Here.</p> </section> <footer> <p>Ā© 2014 Liam Hamel.</p> </footer> </body> </html>
Liam Hamel
Courses Plus Student 204 Pointsthis is my code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Clementine Brass |Just Brass Tax</title>
</head>
<body>
<header>
<a herf="index.html">
<h1>Liam Hamel</h1>
<h2>Just Brass Tax</h2>
</a>
<nav>
<ul>
<li><a herf="index.html">Portfolio</a></li>
<li><a herf="about.html">About</a></li>
<li><a herf="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<section>
<p>Gallery Will Go Here.</p>
</section>
<footer>
<p>© 2014 Liam Hamel.</p>
</footer>
</body>
</html>
Liam Hamel
Courses Plus Student 204 PointsLiam Hamel
Courses Plus Student 204 Pointstotally subconscious... never would have noticed thanks man.