Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Why is it not taking an answer that is correct, bug in the code?

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

Tried <img src="img/cupcake.jpg" alt="any text doesn't matter"> doesn't work

Code checking algorithm is very picky. Hard to tell what it specifically wants. I know this answer is right, anyone worked out what the specific beef is?

Oh awesome, it filtered out my code as well. Time for a bug report me thinks

3 Answers

Through all the back clicks and resubmissions I have now realised Im back to the question asking me to add the title first, which I just got past before. Now I have gotten to the img question and NOW it works. I could swear it said it was wrong when I first did it. This is akin to "hey come here, its doing something weird" person walks over....the error does not replicate and you mumbling under your breath nevermind. Ah well, got past it now.

Hello, Glen. I just tried the challenge with the code you've provided (<img src="img/cupcake.jpg">) and the challenge passed without a problem. Are you sure you've placed the code correctly in the document hierarchy?

Also, when posting code here on the forums, you can use markdown — check the Markdown Cheatsheet (bottom right corner of the Post Answer dialogue) to see how to properly format your code and get it to display.

In regards to the markdown: awesomesauce....didnt realise, thanks!

In regards to: <img src="img/cupcake.jpg"> hierarchy

I've placed it in the middle between the body tags. I have tried to tab the img to the right. Nope. Moved it back and hit one space, tried, nope, pushed it forward another space, submit, nope. Repeated the process. Its now way way to the right where it shouldnt be. Something is definately not right.

The whitespace definitely shouldn't matter. Hmm... strange, because I have no problem passing it by pasting your code. Could you try the challenge in a different browser? Regardless of the result, I think you should contact the support and let them know about this.