HTML HTML Basics Going Further with HTML Links and Paths Challenge

Clayton Bowland
Clayton Bowland
2,639 Points

setting "portfolio"links

the "target name" doesn't seem to be working not suer what I'm doin wrong?

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>

2 Answers

Steven Parker
Steven Parker
153,114 Points

To navigate to a particular element on a page, use the ID value of that element as the "href" value, preceded by a "#" character.

Rachel Lev
Rachel Lev
14,192 Points

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

Clayton Bowland
Clayton Bowland
2,639 Points

I was puuting a space after the #,your help is much appreciated thank you