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

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

2 Answers

Brandyn Lordi
Brandyn Lordi
16,998 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.