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! While you're at it, check out some resources Treehouse students have shared here.
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 trialchristina caamano
Courses Plus Student 625 Pointsimg
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
Gordon Jiroux
8,728 PointsIt 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
39,199 PointsGordon 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.