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 trialTy Jarrett
3,476 Pointshtml 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">
Ty Jarrett
3,476 Points<img src="img/logo.gif" alt="Smells Like Bakin">
<img src="img/you-bake-me-blush.gif" alt="You Make Me Blush">
Ty Jarrett
3,476 Points<!DOCTYPE HTML>
<html>
<head>
<metta 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">
<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>
</ul>
<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>
</div>
<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">
</div>
</body>
</html>
4 Answers
Jennifer Rai
Courses Plus Student 13,164 PointsHi 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"/>
Ty Jarrett
3,476 PointsYes 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
Ty Jarrett
3,476 PointsSorry that was a stupid question just had to stop and think about it. I fixed it now though
Jennifer Rai
Courses Plus Student 13,164 PointsHi Ty - Is it showing up in any other browser? Also, please paste the code you are using for us to take a look at.
Ty Jarrett
3,476 Pointsimg src="img/logo.gif" alt="Smells Like Bakin" img src="img/you-bake-me-blush.gif" alt="You Make Me Blush"
Ty Jarrett
3,476 Pointsdidn't mean to leave an answer
Jennifer Rai
Courses Plus Student 13,164 PointsHi 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:
<br/>
<br/>
```
your code here
```
<br/>
<br/>
<br/>
<br/>
Ty Jarrett
3,476 PointsTy Jarrett
3,476 Points<img src="img/logo.gif" alt="Smells Like Bakin">
<img src="img/you-bake-me-blush.gif" alt="You Make Me Blush">