HTML HTML Basics Going Further with HTML Links and Paths Challenge

Abz Man
Abz Man
1,351 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
13,777 Points

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

4 Answers

Haydn Ellen
PRO
Haydn Ellen
Pro Student 17,331 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
1,351 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
1,351 Points

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

Haydn Ellen
PRO
Haydn Ellen
Pro Student 17,331 Points

Apologies, it's an h1 but same principle applies. Hope that helps.

Karen Fletcher
Karen Fletcher
13,777 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
1,351 Points

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