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 Images, Text and Links Images and File Paths Challenge

Carole Rebera
Carole Rebera
554 Points

Where is the "IMG" Folder?

Directions say to add the moon.jpg to the body section from the img folder. Where is the img folder located?

index.html
<!DOCTYPE html> 
<html>
  <head>
    <title>The Moon</title>
  </head>
  <body>
<img src= moon.jpg
  </body>
</html>

2 Answers

Rachel Lev
Rachel Lev
14,583 Points

The image is in a folder named img, This is how you write the src :

<img src="img/moon.jpg">
Carole Rebera
Carole Rebera
554 Points

I am working on the challenge and I do not see an img folder on this page. There is one on the previous lesson, however, I do not see one on the challenge lesson.

Carole Rebera
Carole Rebera
554 Points

So I don't need an actual "img" folder to find the moon.jpg? Just add the "img/moon.jpg"? I got it! I was confused because in previous lessons I actually went to the Img folder to find the image. I misunderstood. Thank you for your help!