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

What directory?

I need help with finding the image 'cupcake.jpg'. It says it's in a directory but I don't know what that is.

4 Answers

Hi Sha-Asia,

For the code challenge you don't need to find the image. The challenge is simply telling you where it is so that you can come up with the correct path. You can assume the image exists where they say it does.

A directory is a folder. You may be able to find that image in your assets directory.

Robert Wasinger
Robert Wasinger
12,385 Points

A directory is a folder structure. In most of the projects, images are located in the "img" folder.

Try changing the path to "img/cupcake.jpg". This goes in the folder named "img" and looks for the file "cupcake.jpg".

Im not sure because i didnt do that but look if that is in the folder . Downolad the zip file from the right --> of your page and look at bottom " Project File" there you will have what you need for that course . Eg images , some code etc.. you should have the image cupcake there