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

<!DOCTYPE html> 
    <title>Portfolio Page</title>
    <img src="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

Synergi Tech
Synergi Tech
2,451 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