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


Stuck on Stage2, Question2 "Building a simple website"

Hi Classmate, my name is Orlando and this is my first twenty-four hour in class. I am excited and impress with Treehouse, the instructor is very knowledgeable and the tools are top of the line. That said, I am stuck and need a little help on stage2, question2 "Building a simple website" I am unable to get it right. Can someone explain this a little more. By the way Nick is an excellent Instructor, but i am a slow learner. The question is as follow: " We've placed an image named 'Cupcake.jpeg' in a directory named 'img' - Add the image to the body of the document. This is one of many answers i tried, but to no avail, i keep getting it wrong. <img src img/logo.gif alt=Smells Like Bakin>

Thanks Orlando Hernandez 01/19/14

6 Answers

When it says to add it to the body of the document, make sure that you are putting the image somewhere between <body> and </body>.

You use an image tag to place an image: <img>. To tell it what image you want to display and where it can find that image, you use the "src" attribute. It should look like:

<img src="img/Cupcake.jpeg">

I have the same problem, and I even copy/pasted Rodgers' response into the task, and it still didn't work. what am i doing wrong?

Hi Roger Thanks a mill.- i mean thanks for the explanation of the concept. I am started to understand the concept better. Even-though, like Liv Stevens, i also copy/pasted your info. and gotten the same result, but what i got out of this is a better understanding of the concept, because you are saying the same thing as Nick, but from a different angle. So again, big thanks Roger for your help. My response to you Liv Stevens, because it seems that you and i is at the same place and we are not going to understand everything and every concept right away - But as we continue in this class every thing will starts to fall in place. Orlando

Hi Orlando, I'm a newbie myself and got stuck in the same question as you did last week. I got really tired of getting the wrong answer, so I took a break for a day. I came back and watched the video again and made sure my code was correct. <img src= "img/cupcake.jpeg">. Turns out I was missing the last ( " ) to close out the name of the image.

Hope you get it correct and are able to move on to the next stage.

Got it! Make sure you type jpg NOT jpeg. Hope this helps Orlando.

Hi Thanks Evelyn for the encouragement, i appreciate your advice. You are doing good Liv, i am happy for you-i took your advice and replaced jpeg with jpg and it still did not work. <img src="img/Cupcake.jpg"> any way, thanks again.