Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Basics Going Further with HTML Links and Paths Challenge

Christian Landrum
Christian Landrum
2,401 Points

Set the <img> element question, i cant find the right answer

I've tried everything i can think of and i still cant find the right answer

index.html
<!DOCTYPE html> 
<html>
  <head>
    <title>Portfolio Page</title>
  </head>
  <body>
    <img src="../logo.png#img" 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

Brandyn Lordi
Brandyn Lordi
17,778 Points

here is the solution:

"../" Will take you up one level. once there, enter the "img" folder, and then point to your file.

the end results is: <img src="../img/logo.png" alt="Site logo">

In order to to up one level you have to use ../. once you are out and up you want to direct it to the right folder, which is in this case img. so the answer is : ''<img src="../img/logo.png" alt="Site logo">''

keep up the good work.