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 trialBernard Chiyangwa
7,094 Pointshow do i set the "portfolio"link to the section of the page with id portfolio?
how do i set the "portfolio"link to the section of the page with id portfolio?
1 Answer
behar
10,799 PointsIm dumb, i didnt realise you wanted to link to a section of the page, i thought you wanted to link to an external html file. To take you to a specific section of the page via id just put the "#" infront to indicade its an id. This is true for html css and javascript. Example:
<a href="#portfolio"></a>