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
13,696 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">

cabbage one
cabbage one
6,589 Points

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.