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 trialJames Bush
Courses Plus Student 1,607 Pointsred/pink tags in sublime
Even though I'm following along the code instruction, Sublime is displaying the link tags in red! The page still looks right, but the HTML does not look like the example.
Every tag is red: html, head, meta, title, body, ing, ul, li, div, h1, p, img
Anyone know why this happens?
12 Answers
Adam East
2,424 PointsYou have a few errors in your code.
The first: Take a look at the closing h2 tag.
<h2>inside the Kitchen<h/2>
The second: take a look at the closing a tag.
<p><a href="#" class="btn-small">"Read More"<a/>
The third: Look at the opening span tag.
<p>Call Us: <spann>1-555-CUP-CAKE</span><br>
If you were to have checked this using the W3 Validator it would have caught them as well. You can find it here Validator
Adam East
2,424 PointsYou have an error somewhere in your code. Can you paste in your code so that we can have a look? :)
Thanks!
James Bush
Courses Plus Student 1,607 PointsSure thing! Thanks Adam.
Now the css file can't affect the webpage style. All tags are red. This started when I tried to fix the <meta> line.
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Smells Like Bakin' Cupcak Company</title>
<link rel="stylesheet" href="css/normalize.css" type="text/css" media="screen">
<link rel="stylesheet" href="css/grid.css" type="text/css" media="screen">
</head>
<body>
<div class="container clearfix">
<div class="grid_4">
<img src="img/logo.gif" alt="Smells Like Bakin">
</div>
<div class="grid_8 omega"
<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>
<div id="intro">
<h1>Opposites really do attract, especially in our kitchen! We combine unexpected flavors that melt together to create ironically delicious deserts.</h1>
<p><a href="#" class="btn">Browse Our Cupcakes</a></p>
</div>
<img src="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 willkick your tast buds into fiesta mode!</p>
<img src="img/featured-cupcake.jpg" alt="Avocado 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>
<img src="img/new-cupcake-bacon.jpg" alt="Bacon Me Crazy">
<img src="img/new-cupcake-jalapeno.jpg" alt="Jalapeno So Spicy"
</div>
<h2>inside the Kitchen<h/2>
<p>Smells Like Bacon' started out in the garage of the husband wife duo Allison & Joseph. Alisen is the baker, and Joseph found a way for them to make a business out of her tasty treats. Flash forward to today and they have a successful store front, catering business and cupcake truck.</p>
<p><a href="#" class="btn-small">"Read More"<a/>
<h2>Get Bakin' With Us</h2>
<div id="contact">
<p>Call Us: <spann>1-555-CUP-CAKE</span><br>
Email us: <a href="#">bakeon@smellslikebakin.com</a><p>
<p>We announce all of our 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="https://www.twitter.com/#!/smellslikebakin"><img src="img/twitter.gif" alt="Twitter"></a>
<div id="copyright">
<p>© 2012 Smells Like Bakin' Cupcake Company. All Rights Reserved.</p>
</div>
</div>
</body>
</html>
James Bush
Courses Plus Student 1,607 Points*tried fixing the <meta http-equiv="...
line
James Bush
Courses Plus Student 1,607 PointsThanks for the tip. I checked it with Validator and corrected all the errors (lots of closing tag mistakes). Now W3C says it's good, But Sublime shows red tags, and the ccs file does not look like its working.
Any more suggestions?
Adam East
2,424 PointsWould need to see your corrections. :P
James Bush
Courses Plus Student 1,607 PointsOh, of course! :-)
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Smells Like Bakin' Cupcak Company</title>
<link rel="stylesheet" href="css/normalize.css" type="text/css" media="screen">
<link rel="stylesheet" href="css/grid.css" type="text/css" media="screen">
</head>
<body>
<div class="container clearfix">
<div class="grid_4">
<img src="img/logo.gif" alt="Smells Like Bakin">
</div>
<div class="grid_8 omega">
<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>
</div>
<div id="intro">
<h1>Opposites really do attract, especially in our kitchen! We combine unexpected flavors that melt together to create ironically delicious deserts.</h1>
<p><a href="#" class="btn">Browse Our Cupcakes</a></p>
</div>
<img src="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 willkick your tast buds into fiesta mode!</p>
<img src="img/featured-cupcake.jpg" alt="Avocado 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>
<img src="img/new-cupcake-bacon.jpg" alt="Bacon Me Crazy">
<img src="img/new-cupcake-jalapeno.jpg" alt="Jalapeno So Spicy">
</div>
<h2>inside the Kitchen</h2>
<p>Smells Like Bacon' started out in the garage of the husband wife duo Allison & Joseph. Alisen is the baker, and Joseph found a way for them to make a business out of her tasty treats. Flash forward to today and they have a successful store front, catering business and cupcake truck.</p>
<p><a href="#" class="btn-small">"Read More"</a>
<h2>Get Bakin' With Us</h2>
<div id="contact">
<p>Call Us: <span>1-555-CUP-CAKE</span><br>
Email us: <a href="#">bakeon@smellslikebakin.com</a><p>
<p>We announce all of our 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="https://www.twitter.com/#!/smellslikebakin"><img src="img/twitter.gif" alt="Twitter"></a>
<div id="copyright">
<p>© 2012 Smells Like Bakin' Cupcake Company. All Rights Reserved.</p>
</div>
</div>
</body>
</html>
Adam East
2,424 PointsYou need to fix the code there. Place a space after the HTML. :P
James Bush
Courses Plus Student 1,607 PointsIt sounds like you know what's going on. What do you mean "Place a space after the HTML"?
Adam East
2,424 PointsThe code you pasted in the form is not complete. I can not take a look at the code unless it is your full page code. :P
Can you paste the code again this time make sure you do this.
'''html
your code here
'''
Adam East
2,424 PointsThe coding you pasted in the forum is not complete.
Make sure you paste the code correctly so the full code shows. That will allow me to debug it! :)
Thanks!
James Bush
Courses Plus Student 1,607 PointsThat explains why it looked so weird. :-)
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Smells Like Bakin' Cupcak Company</title>
<link rel="stylesheet" href="css/normalize.css" type="text/css" media="screen">
<link rel="stylesheet" href="css/grid.css" type="text/css" media="screen">
</head>
<body>
<div class="container clearfix">
<div class="grid_4">
<img src="img/logo.gif" alt="Smells Like Bakin">
</div>
<div class="grid_8 omega">
<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>
</div>
<div id="intro">
<h1>Opposites really do attract, especially in our kitchen! We combine unexpected flavors that melt together to create ironically delicious deserts.</h1>
<p><a href="#" class="btn">Browse Our Cupcakes</a></p>
</div>
<img src="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 willkick your tast buds into fiesta mode!</p>
<img src="img/featured-cupcake.jpg" alt="Avocado 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>
<img src="img/new-cupcake-bacon.jpg" alt="Bacon Me Crazy">
<img src="img/new-cupcake-jalapeno.jpg" alt="Jalapeno So Spicy">
</div>
<h2>inside the Kitchen</h2>
<p>Smells Like Bacon' started out in the garage of the husband wife duo Allison & Joseph. Alisen is the baker, and Joseph found a way for them to make a business out of her tasty treats. Flash forward to today and they have a successful store front, catering business and cupcake truck.</p>
<p><a href="#" class="btn-small">"Read More"</a>
<h2>Get Bakin' With Us</h2>
<div id="contact">
<p>Call Us: <span>1-555-CUP-CAKE</span><br>
Email us: <a href="#">bakeon@smellslikebakin.com</a><p>
<p>We announce all of our 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="https://www.twitter.com/#!/smellslikebakin"><img src="img/twitter.gif" alt="Twitter"></a>
<div id="copyright">
<p>© 2012 Smells Like Bakin' Cupcake Company. All Rights Reserved.</p>
</div>
</div>
</body>
</html>
Adam East
2,424 PointsOne error here. No closing p
<p><a href="#" class="btn-small">"Read More"</a>
However everything else looks fine. Make sure that the CSS file you are linking to is inside the css folder as denoted in your link rel.
James Bush
Courses Plus Student 1,607 PointsYeah that makes sense. Linked CSS files in css folder as denoted by del link. Got it working now. :-)
Thanks Adam!
Adam East
2,424 PointsGreat! :)
Code well!