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 trial

HTML HTML Basics Going Further with HTML Links and Paths Challenge

Abz Man
Abz Man
6,702 Points

PLEASE HELP

I dont understand how to link.

index.html
<!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>
Karen Fletcher
Karen Fletcher
19,189 Points

Which part of the challenge are you having trouble with linking? Can you post the question from the challenge?

4 Answers

Haydn Ellen
seal-mask
.a{fill-rule:evenodd;}techdegree
Haydn Ellen
Python Development Techdegree Student 22,243 Points

Looks 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
Abz Man
6,702 Points

wow 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
Abz Man
6,702 Points

Sure. The challenge is: “Set the portfolio link to navigate the section of h Ra Page with the ID portfolio”

Karen Fletcher
Karen Fletcher
19,189 Points

Ok 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
Abz Man
6,702 Points

Thank you very much. IT WORKED!!! Have a great day.