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

HTML Build a Simple Website Text Editors and HTML Images and Lists

can'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”>

Stone Preston
Stone Preston
42,016 Points

you 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.

ok, thanks, I'll figure that out and post it!

ok, thanks, I'll figure that out and post it!

    ```<img src=“img/cupcake.jpg”>```

6 Answers

Stone Preston
Stone Preston
42,016 Points

I just passed with

    <body>
        <img src="img/cupcake.jpg" >
  </body>

your code looks correct assuming its in the body

ok, thanks! I'll go try . . .

Jeremy Frimond
Jeremy Frimond
14,470 Points

@jennifer Komen

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

Stone Preston
Stone Preston
42,016 Points

img tags are self closing so you shouldnt put one.

That was my understanding too. So, Stone, does it look right as I've done it?

The 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.

so what did your code look like . . . I know it's cheating, but HELP!

Thanks, Stone! That worked . . . Not sure what I was doing wrong, but looking at your example cleared it all up!