HTML HTML Basics Going Further with HTML Links and Paths Challenge

Kim Dallas
Kim Dallas
11,461 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?

<!DOCTYPE html> 
    <title>Portfolio Page</title>
    <img src="../img/logo.png" alt="Site logo">
      <li><a href="/">Home</a></li>
      <li><a href="">Portfolio</a></li>                
    <h1 id="portfolio">My Portfolio</h1>

1 Answer

Steven Parker
Steven Parker
167,921 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" ).