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

Could you please assist me with this question :Next, provide the browser with alternative text describing the image.

failing to see where i have gone wrong. My answer was: <img src="img/moon.jpg"alt="Shape and size of the moon">

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

3 Answers

Kevin Gates
Kevin Gates
15,052 Points

Hi there,

You're really close. Your put this:

<img src="img/moon.jpg">"alt="the moon at midnight">

The issue is that you closed the image tag too soon and had a extra quote. It should be this:

<img src="img/moon.jpg" alt="the moon at midnight">
Kevin Gates
Kevin Gates
15,052 Points

Felistas Mudidi : if you found this answer helpful, can you select "Best Answer" so students with similar questions can benefit from it more easily? Thanks!

Kevin is right! Don't close the img tag too soon, and definitely make sure to add the alt text, which is format the same as src.

Thank you so much Kevin and Greg. I got it right following your instructions