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

Mark Sims
Mark Sims
2,637 Points

Please tell me what I'm doing wrong? <img src="../logo.png/img" alt="Site logo">

Haven't been able to figure out what I'm doing wrong with this challenge. Can someone give me the answer so that I can see what it is that I've done wrong?

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

matthew glen
matthew glen
14,153 Points

Hello, Your nearly there, you need the name of the folder in which the image is stored (img) to come before the your img file (logo.png) so it should look like this, <img src="../img/logo.png" alt="Site logo">.

Mark Sims
Mark Sims
2,637 Points

Thanks for your help. I have a clearer understanding of the challenge and the answer now. I won't make the same mistake again.

Do you have a img folder with logo.png in it? If so, i think its suppose to be ../img/logo.png instead of ../logo.png/img.