HTML HTML Basics Images, Text and Links Images and File Paths Challenge

Carole Rebera
Carole Rebera
554 Points

Where is the "IMG" Folder?

Directions say to add the moon.jpg to the body section from the img folder. Where is the img folder located?

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

2 Answers

Rachel Lev
Rachel Lev
14,573 Points

The image is in a folder named img, This is how you write the src :

<img src="img/moon.jpg">
Carole Rebera
Carole Rebera
554 Points

I am working on the challenge and I do not see an img folder on this page. There is one on the previous lesson, however, I do not see one on the challenge lesson.

Carole Rebera
Carole Rebera
554 Points

So I don't need an actual "img" folder to find the moon.jpg? Just add the "img/moon.jpg"? I got it! I was confused because in previous lessons I actually went to the Img folder to find the image. I misunderstood. Thank you for your help!