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

Images and Lists challenge.

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

Quizz question #2. When I enter that in the body tags it's wrong. What am I doing wrong?

6 Answers

Based on your code, it appears as though you're forgetting an end quote. Put another quote " after cupcake.jpg, and close the bracket.

I have put the other quotation " after jpeg, and it still won't work.

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

   <body>
     <img src="img/cupcake.jpeg" />
   </body>
 </html>

It's telling me that I need to double-check my image path?

Try changing the abbreviation of your picture format.

Replace "jpeg" with "jpg."

Sorry, I should have mentioned that in my previous comment.

Using 'jpg' instead of 'jpeg' worked. Thank you!

To add to @Dave already excellent advice ...

It's telling me that I need to double-check my image path?

Part of the image path is using the exact file name.

I also had trouble with this challenge. My original line was:

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

It turned out I needed a forward-slash instead of a back-slash. I was put off track because I'd done the same thing in my "follow along" index.html file and my image showed up just fine in Chrome.

The simple correction I needed was:

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

Hopefully that'll help if someone else has the same problem.