Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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.