Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML HTML Basics Images, Text and Links Images and File Paths Challenge

K L
K L
1,088 Points

Inside the <body>, display the image moon.jpg located inside a folder named img. why <img src="img/moon.jpg"> not work?

Inside the <body>, display the image moon.jpg located inside a folder named img. why <img src="img/moon.jpg"> not work?

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

4 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! When I copy/paste your code into the challenge, it passes Step 1 without a problem. My best suggestion to you is to copy/paste the code you have here into the challenge after restarting it. You might even need to close down your browser and reopen it. But there is nothing wrong with the code you've posted here.

Hope this helps! :sparkles:

K L
K L
1,088 Points

Thank you

Dillon Cook
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Dillon Cook
Front End Web Development Techdegree Graduate 16,531 Points

I took an unfortunate 3 week break from programming out of frustration because I couldn't pass it when I had the right answer all along. Can you guys fix this problem? It's giving me a false error and there's absolutely no way to skip past where I'm at unless it let's me pass.

Adeeb Arangodan
Adeeb Arangodan
4,397 Points

Hi. As Jennifer Nordell said, there is no error in your code. I also tested your code and confirmed the same. Internet explorer edge browser gets disconnected in between, May be issue with teamtreehouse website or with the browser. You can try the same with chrome and pass the same.

K L
K L
1,088 Points

Thank you, it works

In between the body tags:

<img src = "img/moon.jpg">