HTML HTML Basics Going Further with HTML Links and Paths Challenge

Set the <img> element's src attribute to a path that goes one level out of the current folder and inside a folder named

need help

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

2 Answers

Synergi Tech
Synergi Tech
2,081 Points

Hi Tynisha,

To get one level out of the folder, you'd need to do this:

 <img src="../img/logo.png" alt="Site logo">

As you can see, the .. gets you into the root directory and the /img then puts you into the img directory.

Thank yo I figure it out before I got a response