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

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
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

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:

got it,thank you.

Agnes Demes
Agnes Demes
6,613 Points

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