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

I can't get my image to show up - only the text

<!doctype html>

<html lang="en" > <head>
<meta charset="utf-8"> <title> My Page</title> </head>

<body> <p>Here are some flowers.</p> <img src="roses_flowers_plant.jpeg"> <p>Aren't they nice</p>

</body> </html>

The two files - html and image are in the same directory - what am I doing wrong?

Were is your picture located?

2 Answers

try creating a new file in your project called img then type <img src="img/roses_flowers_plant.jpeg"> Make sure the name is correct.

it should work if it is in same directory if not you made mistake with spelling ...

also you can try put it in root "/yourimage.jpeg" also always add alt="" property also if it is empty ..