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


Logo's image won't display...

I'm a complete newbie...Day 1 and I am having trouble displaying my first image element as shown in the video. Below is what I have coded...what have I done wrong? Is it the code or something else? Please help.

   <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
   <title>Smells Like Bakin' Cupcake Company</title>
    <img src="img/logo.gif" alt="Smells Like Bakin">

2 Answers

Jonathan Broderick
Jonathan Broderick
12,409 Points

Your code actually looks fine. Is the image you're trying to display stored in the right place? It should be in the folder labeled "img", and that "img" folder should be located in the same place as your html file.

Thank you...you were right about location of file.

Christina Pagano
Christina Pagano
15,676 Points

Your code is fine... the only reason it wouldn't be displaying is if your 'img' folder containing 'logo.gif' is not in the same location as your html file. Or if it is not actually saved as an html file.