HTML HTML Basics Going Further with HTML Links and Paths Challenge

True Andrews
True Andrews
Front End Web Development Techdegree Student 3,917 Points

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

Review, "root relative paths"

index.html
<!DOCTYPE html> 
<html>
  <head>
    <title>Portfolio Page</title>
  </head>
  <body>
    <img src="../img/logo.png" alt="Site logo">
    <ul>
      <li><a href="/index.html">Home</a></li>
      <li><a href="/index.html/portfolio">Portfolio</a></li>                

    <h1 id="portfolio">My Portfolio</h1>
  </body>
</html>

2 Answers

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 44,800 Points

you can select and id by using # and the name of the id