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 trialdelon owano
2,501 PointsHow do you set "portfolio" link to navigate to the section of the page with id portfolio
ive tried to put" /#portofolio" in the link but there still seems to be an issue
<!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">My Portfolio</a></li>
</ul>
<div id="portfolio">My Portfolio</div>
</body>
</html>
2 Answers
Alexander D
8,685 PointsHello there,
If your Portfolio section is inside the same page, all you need to do is to remove the "/" from "/#portfolio", as it should be just "#portfolio".
The "id=portfolio" at the bottom of the page has been set correctly.
Let me know if that works!
delon owano
2,501 Points/#portfolio inside the link to navigate to the id portfolio
delon owano
2,501 Pointsdelon owano
2,501 Pointsthanks man