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 Build a Simple Website Text Editors and HTML Images and Lists

html on google chrome doesn't show my image

I did everything right I have the img file in my pictures but when I reload the page the image doesn't load. No it doesn't load in internet explorer either.

<img src="img/logo.gif" alt="Smells Like Bakin"> <img src="img/you-bake-me-blush.gif" alt="You Make Me Blush">

<img src="img/logo.gif" alt="Smells Like Bakin">

<img src="img/you-bake-me-blush.gif" alt="You Make Me Blush">

<img src="img/logo.gif" alt="Smells Like Bakin">

<img src="img/you-bake-me-blush.gif" alt="You Make Me Blush">

  <metta 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">
  <ul class="nav">
    <li><a href="#">About</a></li>
    <li><a href="#">Cupcakes & Prices</a></li>
    <li><a href="#">Locations</a></li>
    <li class="last"><a href="#">Contact Us</a></li>
  <div id="intro">
  <h1>Opposites really do attract, espeacially in our kitchen! We combine unexpected flavors that mealt together to create ironically delicious desserts.</h1>
  <p><a href="#" class="btn">Browse Our Cupcakes<a/></p>

  <img src="img/you-bake-me-blush.gif" alt="You Make Me Blush">

  <div id="featured-cupcake">
      <h2>Cupcake of the Week</h2>
      <p>This week's featured cupcake is the <a href="#">Avocado Chocolate cupcake</a>. Its strange combo of flavors will kick your taste buds into fiesta</p> 
    <img src="img/featured-cupcake.jpg" alt="Avocado Chocolate Cupcake">

4 Answers

Hi Ty - A couple of things.

When you say "I have the img file in my pictures" what do you mean by that? The images need to be in a folder called "img" in the same directory as your html page OR you need to change the path to point to them correctly.

Also, I noticed that you have an extra "t" in meta:

  <metta http-equiv="content-type" content="text/html; charset=utf-8"/>

Yes i put them under My Documents in My Pictures. Because they were not working so thought maybe they would need to be there. So that's the issue I have images in wrong location I opened my Sublime text file but not sure where to put the images. Thank You for your help

Sorry that was a stupid question just had to stop and think about it. I fixed it now though

Hi Ty - Is it showing up in any other browser? Also, please paste the code you are using for us to take a look at.

img src="img/logo.gif" alt="Smells Like Bakin" img src="img/you-bake-me-blush.gif" alt="You Make Me Blush"

didn't mean to leave an answer

Hi Ty,

Please use Markdown to paste the code. You can click on the Markdown Cheatsheet link just below the comment box for more information. To paste code you need to put three backticks ( ` ) on the line before and after the code.

It looks like this:


your code here