HTML HTML Basics Going Further with HTML Links and Paths Challenge

Kim Dallas
Kim Dallas
9,263 Points

i've tried everything

this is the one i'm stuck on. how do I set the portfolio to id? create another line of code?

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="">Portfolio</a></li>                
    </ul>
    <h1 id="portfolio">My Portfolio</h1>
  </body>
</html>

1 Answer

Steven Parker
Steven Parker
150,226 Points

You just fill in the "href" value, as you did for the previous task.

To cause a link to navigate to a specific element by ID, the "href" should be set to that ID with a hash mark ("#") in front of the ID name ( href="#portfolio" ).