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

Can't add image! Don't understand what it's asking me...

Now add the image located at 'img/featured-cupcake.jpg' directly after the h2.

<body> <div id="featured-cupcake"> <h2>Cupcake of the Week</h2> </div> </body> </html>

I don't know how to do this at all. Can someone please do this for me?

1 Answer

Ireneusz Kopta
Ireneusz Kopta
6,212 Points

Hi ! In your html document after h2 tag add new tag called <img>. In your example you need to add code as stated below: <img src="img/featured-cupcake.jpg" alt="whatever you want"/>

Where between the double quotes you have to specify exact path to your file.