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 trialIsaac Liao
908 PointsMy "href" is not showing in the preview, am I missing any code?
'''html <header> <a herf="index.html"> <h1>Isaac Liao</h1> <h2>Designer</h2> </a> <nav> <ul> <li>Portfolio</li> <li>About</li> <li>Contact</li> </ul> </nav> ...
8 Answers
Eric Ellenbrook
9,006 PointsYou have a typo. You typed <a herf="index.html">
when it should be <a href="index.html">
pay attention to third and fourth letters.
Also you want a closing </a> after every link. So
<a herf="index.html"> <h1>Isaac Liao</h1></a>
Then start a new link.
Finally, the <nav> tag seems to be after the <h2> tag and should actually come before the first <a href> tag.
Isaac Liao
908 Pointsthank you so much!
Jason Anello
Courses Plus Student 94,610 PointsHi Eric,
In this case, the link should be wrapping the h1
and the h2
. Both of them together make up the logo so it should be one big link that links back to the home page.
I think the only error is the herf
The list items aren't links yet but maybe that hasn't happened in the video yet.
Isaac Liao
908 Points...<header> <a herf="index.html"> <h1>Isaac Liao</h1> <h2>Designer</h2> </a> <nav> <ul> <li>Portfolio</li> <li>About</li> <li>Contact</li> </ul> </nav>'''
Eric Ellenbrook
9,006 PointsYou have to post code in order for us to check if you are missing any.
Isaac Liao
908 Points<header> <a herf="index.html"> <h1>Isaac Liao</h1> <h2>Designer</h2> </a> <nav> <ul> <li>Portfolio</li> <li>About</li> <li>Contact</li> </ul> </nav>
Trying to hyperlink the header
Eric Ellenbrook
9,006 PointsPut it in the code, brother.
Type back ticks (the key to the left of #1) in order to post code.
Isaac Liao
908 Points<header>
<a herf="index.html">
<h1>Isaac Liao</h1>
<h2>Designer</h2>
</a>
<nav>
<ul>
<li>Portfolio</li>
<li>About</li>
<li>Contact</li>
</ul>
</nav>
Eric Ellenbrook
9,006 PointsNo problem. If you can mark the answer as the best answer so other users who might have the same situation are helped that would be great.
Eric Ellenbrook
9,006 PointsI cannot reply to your comment Jason Anello. I appreciate the information. I wasn't aware that that was the case as I hadn't actually done that exercise. :)
Isaac Liao
908 PointsThanks Eric and Jason. Now I will be able to forge ahead again.
Isaac Liao
908 PointsIsaac Liao
908 Points'''html '<header> <a herf="index.html"> <h1>Isaac Liao</h1> <h2>Designer</h2> </a> <nav> <ul> <li>Portfolio</li> <li>About</li> <li>Contact</li> </ul> </nav>' '''