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


Challenge 2

I'm on challenge 2 and it reads: We've placed an image named 'cupcake.jpg' in a directory named 'img'. Add the image to the body of document.

When I add the image, a red box appears that reads: "Double Check your image path"

Please help I've been stuck on this for over an hour!

12 Answers

Hello Cynthia Guerrero ,

It would be easier to help you if you explain what you are doing so we can tell you what is wrong in your code.

To add an image in HTML, would be: <img src="img/cupcake.jpg"> This is getting the image from the 'img' folder that you mention.

Hope this helps

thanks it did help!

Yeah, which course is this?

i got it Gary, it was <img src="img/cupcake.jpg"

thanks for your quick response!

Dennis Skoko
Dennis Skoko
12,860 Points

Did you add this code?

<img src="img/cupcake.jpg" alt="Cupcake">

no I only typed in <img src="img/cupcake.jpg"

but now i'm trying to "Add an empty unordered list below the image" and I'm typing in


and it's not working!

Dennis Skoko
Dennis Skoko
12,860 Points

Can you post your code and a link to the challenge. If you do, it would be easier to help you

Cynthia Guerrero please don't forget to add the code you are trying to use so we can check what is wrong .

<li> Item 2</li>

Carlos Sura here's what i'm doing, it's asking me to "add an empty unordered list below the image:

    <title>Smells Like Bakin' Cupcake Company</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <img src= "img/cupcake.jpg" alt="cupcake"   
<li> Item 2</li>


daniel raine
daniel raine
Courses Plus Student 2,215 Points

if you delete your "item" and "item2" from your list tags it should work i think its just asking for a list tag with no content inside.

hope this helps

Is it because you have not closed your image tag? it should look like below i think

<img src= "img/cupcake.jpg" alt="cupcake"> then the unordered list will work.

thank you kindly!!! i finally moved forward to the next step!!!


Trevor Lawrence okay let me try because i still can't past that step

cameryn smith
cameryn smith
2,828 Points

Hey, how did you guys paste the pic of your code in the forum question. Are you using a snipping tool?

cameryn smith i copied and pasted it. you just have to use backtick button, i watched the "tips for asking questions" video (its on the left of my screen)and thats the first tip he gives.