Welcome to the Treehouse Community
Looking to learn something new?
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>
Jonathan Broderick12,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.
Christina Pagano15,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.