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

HTML How to Make a Website Creating HTML Content Use the Navigation Element

Isaac Liao
Isaac Liao
908 Points

My "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> ...

Isaac Liao
Isaac 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>' '''

8 Answers

You 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
Isaac Liao
908 Points

thank you so much!

Hi 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
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>'''

You have to post code in order for us to check if you are missing any.

Isaac Liao
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

Put it in the code, brother.

Type back ticks (the key to the left of #1) in order to post code.

Isaac Liao
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>

No 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.

I 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
Isaac Liao
908 Points

Thanks Eric and Jason. Now I will be able to forge ahead again.