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

Finally, add a caption that describes the image. Im i doing something wrong?

Dear Teamtreehouse Community,

I have some problem completing this Task It asks me to add the caption and so far I know I have added that.

our did I miss understanding the question?

index.html
<!DOCTYPE html> 
<html>
  <head>
    <title>The Moon</title>
  </head>
  <body>
 <img src="img/moon.jpg" alt=" Neil Armstrong's was the first person that landed in 1969 on the moon" 
 title="some people still believe that the moon landing on 1969 was a fake what do you think is it real our not!" 

  <figcaption>
  The Moon (or Luna) is the Earth’s only natural satellite and was formed 4.6 billion years ago around some 30–50
  million years after the formation of the solar system. The Moon is in synchronous rotation with Earth meaning the 
  same side is always facing the Earth. The first unmanned mission to the Moon was in 1959 by the Soviet Lunar Program with the 
  first manned landing being Apollo 11 in 1969.
  </figcaption>

  </body>
</html>

3 Answers

Alexandra Edwards
Alexandra Edwards
4,686 Points

Hi Sven,

It looks like you're missing a couple things. One of those things is just an end bracket > to enclose your image tag. The second is your <figure></figure> tags before and after the figcaption tags.

Does that help? Let me know if you need anything else! :)

will a <figcaption></figcaption> always go into a <figure></figure> ? Thx! :)

You need to close the img tag with a >. You left it open.

<img src="img/moon.jpg" alt=" Neil Armstrong's was the first person that landed in 1969 on the moon" 
 title="some people still believe that the moon landing on 1969 was a fake what do you think is it real our not!" >

  <figcaption>

lol is keep forgetting that little guy always for some reason! :P Thx!

Thx! for your help!

Christopher Velez
Christopher Velez
226 Points

Two things: Your img tag is missing a closing angled bracket and if I remember correctly, figcaption can only go inside of a <figure> tag. I think you'll need to wrap your <img> and <figcaption> tags in a <figure> tag for this to validate.

Thx! for you help :)