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 trialJennifer Komen
283 Pointscan't figure out what i'm doing wrong in this challenge
The task is to add an image. This is what I've typed in, and it is saying to double check the source. I can't figure out what I've done wrong. Can anyone help so I can continue with the rest of the lesson? <img src=“img/cupcake.jpeg”>
Jennifer Komen
283 Pointsok, thanks, I'll figure that out and post it!
Jennifer Komen
283 Pointsok, thanks, I'll figure that out and post it!
Jennifer Komen
283 Points ```<img src=“img/cupcake.jpg”>```
6 Answers
Stone Preston
42,016 PointsI just passed with
<body>
<img src="img/cupcake.jpg" >
</body>
your code looks correct assuming its in the body
Jennifer Komen
283 Pointsok, thanks! I'll go try . . .
Jeremy Frimond
14,470 Points@jennifer Komen
<img src="img/cupcake.jpg">
Stone Preston
42,016 Pointsimg tags are self closing so you shouldnt put one.
Jennifer Komen
283 PointsThat was my understanding too. So, Stone, does it look right as I've done it?
Jon McDowell
376 PointsThe closing bracket wasn't used in the first image source example. Why is it being used now? also I deleted the image code for the logo.gif from my example and was able to pass through the challenge.
Jennifer Komen
283 Pointsso what did your code look like . . . I know it's cheating, but HELP!
Jennifer Komen
283 PointsThanks, Stone! That worked . . . Not sure what I was doing wrong, but looking at your example cleared it all up!
Stone Preston
42,016 PointsStone Preston
42,016 Pointsyou are going to have to post the html code you are using as a snippet, it wont show up in the forum otherwise. See the markdown cheat sheet for information on posting code snippets.