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 trialPrasad Hegde
1,336 PointsAnchor 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.
2 Answers
andren
28,558 PointsYou 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.
Ross Woodruff
4,388 Pointsyou misspelled the href on your h1 anchor tag.
you have <a herf="index.html">
Shaun Hoffman
10,879 PointsShaun Hoffman
10,879 PointsHi 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.