HTML HTML Basics Going Further with HTML Links and Paths Challenge

Julie Kulzick
Julie Kulzick
1,210 Points

How do I get the "portfolio" link to navigate to the section of the page with the id portfolio?

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

2 Answers

Brandon Van Camp
Brandon Van Camp
Front End Web Development Techdegree Graduate 30,381 Points

Julie, your almost there. Instead of a "/", when navigating to a id on the same page we want just "#portfolio".


<li><a href="#portfolio">Portfolio</a></li>