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

It's not working

What's wrong with this?

    <img src='cupcake.jpg'>

2 Answers

Stone Preston
Stone Preston
42,016 Points

the image file is in a directory called img. You will need to include that directory in your src path in order to pass.

Ryan Decker
Ryan Decker
3,451 Points

Also, unless you are in CSS you will want to use double quotation marks before <"img/cupcake.jpg">

James Barnett
James Barnett
39,199 Points

Single quotes are legal in HTML and should pass the code challenge. However they can get tripped up on special characters, which wouldn't be the case here.