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

Ok so what next?

How do I specify the moon image?

index.html
<!DOCTYPE html> 
<html>
  <head>
    <title>The Moon</title>
  </head>
  <body>
<img src="moon.jpg" alt=Provide alternative text for accessibility"/>
  </body>
</html>

2 Answers

Hi Lynn,

You are almost there! There is a key thing you are missing. The instructions say that the image is located in a folder by the name of img. So you have to include the path to the moon image. Also, you are a missing quotation in the alt attribute. I hope this helps!

<img src="path to image" alt="Provide alternative text for accessibility"/>
Jamie Reardon
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jamie Reardon
Treehouse Project Reviewer

To expand on Kristina's answer with the code challenge solution in case you still need it:

<img src="img/moon.jpg" alt="Picture of the moon">
Rich Donnellan
Rich Donnellan
Treehouse Moderator 27,696 Points

Thanks, Jamie. However, it's highly advised not to provide direct answers.

Rich Donnellan
Rich Donnellan
Treehouse Moderator 27,696 Points

No worries! Although helpful in passing the challenge, it doesn't benefit the OP in learning the material.