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

Prasad Hegde
Prasad Hegde
1,336 Points

Anchor Tag

<header> <h1><a herf="index.html"> Prasad Hegde</a></h1> <h2><a href="index.html"> Designer</a></h2>
<nav> <ul> <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>

for the <h1> tag <a> tag is not working and if i wrap the h1 and h2 tag with <a> tag then both the h1 and h2 tag does not appears as link.

Shaun Hoffman
Shaun Hoffman
10,879 Points

Hi Prasad-

Not sure if you copied this right out of your document or not but in the <h1> code you have 'herf' instead of 'href'. Hope this helps, otherwise feel free to clarify and I can take a look the next time I check in.

2 Answers

andren
andren
28,558 Points

You misspelled the name of the href attribute as herf. If you spell it correctly like this:

 <h1><a href="index.html">Prasad Hegde</a></h1> 

Then it should work.

you misspelled the href on your h1 anchor tag.

you have <a herf="index.html">