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 don't use workspaces. I use TextMate. How do I add an image?

HTML - How to make a website - Structure the image gallery

2 Answers

To add an image you will need to put it in the same folder as your index.html! You can even put it inside an 'img' folder from there if you like! Then all you need to do is give the img element the right location for the src attribute.

<img src="img/myimagehere.jpg" alt="This is an image.">

I hope this helped you out Joey!

-Luke

is adding an image to workspace that you want to know about?