HTML HTML Basics Going Further with HTML Links and Paths Challenge

Clayton Bowland
Clayton Bowland
2,855 Points

seting <img> elements inside a folder named img.

i tried the "/" im not getting it right??

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

Jennifer Nordell
STAFF
Jennifer Nordell
Treehouse Staff

Hi there! To go up one folder, we use the ... If we then want to specify a folder inside there, we use / and the name of the folder. The name of this folder according to the challenge is img. Note that file paths and file names are case-sensitive. The name Images will not work as suggested in the other answer here.

src="../img/logo.png"

This tells our code to go up one folder, then go into the img folder, and then get the file logo.png.

Hope this helps! :sparkles:

Agnes Demes
Agnes Demes
6,604 Points

Hi there ../ to go out then specify the folder name Images/.... hope this helps