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.

General Discussion


how do I complete this task???

Assuming an 'img' directory with an image 'cupcake.jpg', add the image to the body of the document.

2 Answers

It depends on where the 'img' directory is... if it's right off / (root) then:

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

but don't forget to add your "Alt" property

<img src="/img/cupcake.jpg" alt="Featured cupcake">
James Barnett
James Barnett
39,199 Points

Gordon Jiroux - Here on the forum we usually try to give a few hints before giving the answer.

The goal of these forums is not to get a user past a code challenge, instead it's to aid the learning process of our fellow Treehouse users. If you give them the answer, they don't learn much.