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 trial

HTML Build a Simple Website Text Editors and HTML Images and Lists

can't figure out whats wrong

i don't get this, this is hard

4 Answers

The more specific you are about what you aren't understanding, the more helpful we all can be.

To 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
Sreng Hong
15,083 Points
Add 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>

its about the cupcake image and you have to put it on the body of the document