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>

3 Answers

Jennifer Nordell
STAFF
Jennifer Nordell
Treehouse Staff

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
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