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 trialArvind Kevin Arjun Sharma
8,272 PointsSombody please help me with the answer to pass this, i'm stressing me out so much for this!!!
Inside the <body>, display the image moon.jpg located inside a folder named img.
<!DOCTYPE html> <html> <head> <title>The Moon</title> </head> <body> <img src="moon.jpg" alt="A picture of the moon"/> </body> </html>
<!DOCTYPE html>
<html>
<head>
<title>The Moon</title>
</head>
<body>
<img src="moon.jpg" alt="A picture of the moon"/>
</body>
</html>
6 Answers
matth89
17,826 PointsHi, you are very close. You just need to add img/ before moon.jpg, so it knows to look inside the "img" folder. Like so:
img/moon.jpg
Good luck!
Arvind Kevin Arjun Sharma
8,272 PointsThank you Matt, you the real mvp.
matth89
17,826 PointsHappy to help!
cesar mota
544 Pointswhy is is the path NOT "img./mmon.jpg" ????
the name of the folder is "img."
Ary de Oliveira
28,298 PointsChallenge Task 1 of 3
Inside the <body>, display the image moon.jpg located inside a folder named img.
Challenge Task 2 of 3
Next, provide the browser alternative text describing the image.
Well done! You`re doing great Ary!
<!DOCTYPE html>
<html>
<head>
<title>The Moon</title>
</head>
<body>
<img src="img/moon.jpg" alt="The Moon">
</body>
</html>
Mindaugas Krivickas
9,853 PointsTry this line of code: <img src="img/moon.jpg">
Ary de Oliveira
28,298 PointsChallenge Task 3 of 3
Finally, add a caption that describes the image.
<!DOCTYPE html>
<html>
<head>
<title>The Moon</title>
</head>
<body>
<figure>
<img src="img/moon.jpg" alt="The Moon">
<figcaption>Virtual reality users, The Moon by Ary de Oliveira.</figcaption>
</figure>
</body>
</html>
Rob Allessi
8,600 PointsGreetings Arvind Kevin Arjun Sharma
Try removing the alt text portion of your code and run it again. Also, you need to indicate the folder in which the moon.jpg file resides (file path).
Arvind Kevin Arjun Sharma
8,272 PointsIt still don't work sir?
Natnael Kibreab
Web Development Techdegree Student 1,542 Points<!DOCTYPE html> <html> <head> <title>The Moon</title> </head> <body> <img src="img/moon.jpg"> </body> </html> i have used this to pass good luck guys
Peter B. Sims
Courses Plus Student 2,896 PointsPeter B. Sims
Courses Plus Student 2,896 PointsArvind, thank you! I'm so happy you went before me in taking this course. Your questions have really helped me out because I have had the same ones and you have generated answers. Thank you Team Treehouse too for the assistance.