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 trialClayton Bowland
2,874 Pointssetting "portfolio" link to navigate to section
not getting how to set the "portrfolio"link to navigate to section id portfolio
<!DOCTYPE html>
<html>
<head>
<title>Portfolio Page</title>
</head>
<body>
<img src="../img/logo.png" alt="Site logo">
<ul>
<li><a href="/">Home</a></li>
<li><a href=""portfolio</a></li>
</ul>
<h1 id="portfolio">My Portfolio</h1>
</body>
</html>
2 Answers
Steven Parker
231,248 PointsHere's a few hints:
- the navigation info should be entirely contained between the quotes after "href="
- navigation to an element ID on the same page should be preceded by a "#" character
- the beginning "a" tag still needs to end with a ">" character
- the word "Portfolio" should still be between the tags
Eddy Sentongo
2,501 PointsWhen setting up a link you need to enclose the text in your case portfolio in opening and closing anchor tags just like this: <a href="#targetName">portfolio</a> Then you wrap you target in an anchor like this: <a name="#targetName">Portfolio</a> Good luck.
Eddy Sentongo
2,501 PointsEddy Sentongo
2,501 PointsWhen setting up a link you need to enclose the text in your case portfolio in opening and closing anchor tags just like this: <a href="#targetName">portfolio</a> Then you wrap you target in an anchor like this: <a name="#targetName">Portfolio</a> Good luck.