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 trialAbz Man
6,702 PointsPLEASE HELP
I dont understand how to link.
<!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="id">Portfolio</a></li>
</ul>
<h1 id="portfolio">My Portfolio</h1>
</body>
</html>
4 Answers
Haydn Ellen
Python Development Techdegree Student 22,243 PointsLooks like you have now completed the 2nd part of the challenge and you are on the last part. Set the "Portfolio" link to navigate to the section of the page with the id portfolio.
So, let's go through this... you have a section with an id called portfolio that you have to link to. You have tried just linking to #id which will not work as that's not the id name of portfolio section, but a good attempt and you almost got it right. Just try replacing #id with the actual name of the section they are asking for. In this instance they want you to link to the portfolio, so #portfolio would be heading in the right direction here.
Abz Man
6,702 Pointswow its as simple as that. I just wanted to thank you very much for your help. I watched the videos numerous times and just could not pick up on it.
Abz Man
6,702 PointsSure. The challenge is: βSet the portfolio link to navigate the section of h Ra Page with the ID portfolioβ
Karen Fletcher
19,189 PointsThanks!
Haydn Ellen
Python Development Techdegree Student 22,243 PointsApologies, it's an h1 but same principle applies. Hope that helps.
Karen Fletcher
19,189 PointsOk for the portfolio link, you need to tell the page to navigate to the "My Portfolio" section of your page using the # symbol and the id of the portfolio element within that href tag:
#portfolio
Abz Man
6,702 PointsThank you very much. IT WORKED!!! Have a great day.
Karen Fletcher
19,189 PointsKaren Fletcher
19,189 PointsWhich part of the challenge are you having trouble with linking? Can you post the question from the challenge?