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

Albert Almonte
Albert Almonte
865 Points

i dont get it

im doing what it says but it doesnt work

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

1 Answer

Jason Larson
Jason Larson
7,174 Points

The challenge says:

Inside the <body>, display the image moon.jpg located inside a folder named img.

Change your img src from "images/moon.jpg" to "img/moon.jpg".

Rich Donnellan
Rich Donnellan
Treehouse Moderator 25,764 Points

Answer updated with code formatting. Check out the Markdown Cheatsheet below the Add an Answer submission for syntax examples, or choose Edit Answer from the three dots next to Add Comment to see how I improved the readability.

👍🏻