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 trialjackaleen chavez
179 Pointscan't figure out whats wrong
i don't get this, this is hard
4 Answers
Dave Evans
13,160 PointsThe more specific you are about what you aren't understanding, the more helpful we all can be.
Dave Evans
13,160 PointsTo put an image in the body of the document, you will need something like this:
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<img src="whever your image is located in your directory" alt="" />
</body>
</html>
I'm not familiar with the lesson you are directly referring to off the top of my head, but as long as you have the correct location of your image in the src attribute, you should see the image within the body or wherever you put the code.
Sreng Hong
15,083 PointsAdd an image name cupcake.jpg in the img folder
So it'll be something like this in the body part:
<body>
<img src="img/cupcake.jpg">
</body>
jackaleen chavez
179 Pointsits about the cupcake image and you have to put it on the body of the document