Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML

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.

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

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.