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
Alex Coven
1,345 PointsCan't get pictures to show.
All of my coding seems to be correct, all of my headlines and paragrahs and links are showing up fine but my images wont show up on my browser when I save and refresh. Someone please help!
<!DOCTYPE.HTML>
<html>
<head>
<meta http-equic="Content-Type"content="text/html; charset=hutf-8"/>
<title>Smells Like Bakin' Cupcake Company</title>
</head>
<body>
<img src="desktop/img/logo.gif" alt="Smells Like Bakin'">
<ul class="nav">
<li><a href="#">About</a></li>
<li><a href="#">Cupcake & 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, especially in our kitchen! We combine unexpected flavors that melt together to create ironically declicious desserts.</h1>
<p><a href="#" class="btn">Browse our Cupcakes</a></p>
</div>
<img src="desktop/img/img/you-bake-me-blush.gif" alt="You Bake 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 mode!</p>
<img src="img/featured-cupcake.jpg" alt="Avocado Chocolate Cupcake">
</div>
<div id="new-cupcakes">
<h2>Fresh Out the Oven</h2>
<p>Our newest cupcakes are <a href="#">Bacon Me Crazy</a> and <a href="#"> Jalapeno So Spicy</a>.<p>
</div>
<h2>Inside the Kitchen</h2>
<p>Smells like Bakin' started out in the garage of the husband wife due Allison & Joseph. Allison is the baker,. and Joseph found a way to make a business out of her tasty treats. Flash forward to today and they have a succesful store front, catering business and cupcake truck.</p>
<p><a href="#" class="btn-small">Read More</a></p>
<h2>Get Bakin with Us</h2>
<div id="contact">
<p>Call us: <span>1-555-CUP-CAKE</span><br>
Email us: <a href="#">bakeon@smelllikebakin.com</a></p>
</div>
<p>We annouce all of our new flavors first through Facebook & Twitter, and even take requests</p>
<a href="http://www.facebook.com/smellslikebakin"><img src="img/facebook.gif" alt="Facebook"</a>
<a href="http://www.twitter.com/smellslikebakin"><img src="img/twitter.gif" alt="Twitter"</a>
</body>
</html>
Paul Yorde
10,497 PointsTry substituting this:
<img src="img/facebook.gif"
<img src="img/twitter.gif"
with this:
<img src="img/facebook.gif">
<img src="img/twitter.gif">
Paul Yorde
10,497 PointsOk, I can't get the code to show up here, LOL! Nevertheless, your code is missing a closing angle on your img tag.
2 Answers
Paul Yorde
10,497 Points<html>
royalcompass
4,758 PointsIn the last two lines of code remove the </a and leave just > and it should work as long as your index file is in the same folder as the 'img' folder.
Chase Lee
29,275 PointsPaul Yorde, I reformatted your code for you. If you want to know how I did it you can find out here.
royalcompass
4,758 PointsThank you very much Chase.
Chase Lee
29,275 PointsHappy to help.
Paul Yorde
10,497 PointsPaul Yorde
10,497 PointsHi Alex, try substituting this
with this:
Also, Do you have your files and folders inside of a sub-directory? if so, then try
"../img/facebook.gif"