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 trialConnor Bryan
1,439 PointsConfusion with Image Path
Hello, I was doing the challenge for Images and Lists and i had some confusion. In the section where the task is to place and image named cupcake.jpg, I am having difficulties determining where the specified image path is.
The code that i entered was as followed: '''html <body> <img src="cupcake.jpg"> '''
The error i receive is telling me i need to check my image path.
If you could help me i would be very appreciative. Thank you for your time.
Signed, Connor Bryan
3 Answers
Mike Curtis
6,430 PointsHello Connor,
That's funny you mention that because another person is asking about the same question. Image path should include the folder they are contained in. The code will likely look something like this:
<img src="img/cupcake.jpg">
I will go take a look at that quiz to confirm though.
Mike Curtis
6,430 PointsThat code didn't save. Let me try that in quotations.
<img src="img/cupcake.jpg">
Mike Curtis
6,430 PointsThat code didn't save. Let me try that in quotations.
"<img src="img/cupcake.jpg">"
Connor Bryan
1,439 PointsConnor Bryan
1,439 PointsThank you so much Mike, I think i was just missing the img/ before the image name. I very much appreciate your help Mike!