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

what is going on with my code?

Help? Anyonre

index.html
<!DOCTYPE html> 
<html>
  <head>
    <title>The Moon</title>
  </head>
  <body>
    <figure>
<img src="images/img-moon.jpg" alt="$1Bill to the Moon">
    </figure>
  </body>
</html>
Jonathan Pyper
Jonathan Pyper
353 Points

What error are you experiencing? James Davin

2 Answers

Hi James!

This passes all 3:

<!DOCTYPE html> 
<html>
  <head>
    <title>The Moon</title>
  </head>
  <body>
    <figure>
      <img src="img/moon.jpg" alt="The Moon in a Starry Sky">
      <figcaption>
        The Moon in a Starry Sky  
      </figcaption>
    </figure>
  </body>
</html>

You had the file and folder names wrong.

The test did NOT like /img or ./img, either (but are technically fine)...

I hope that helps.

Stay safe and happy coding!

Hey Peter do you know how to prototype apps? I have a cool project I wanted to work on.

Hi James!

I do not have much prototyping/wireframing experience yet (don't have an app for it on my Mac, yet).

But I'm a quick study, as they say, so I could probably ramp-up pretty quickly.

What do you have in mind?

BTW, for some fun - here is my take on the classic Simon Game coding challenge:

https://codepen.io/petrovnikov/full/MXxQPx

LOL

-Pete