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

HTML Build a Simple Website Creating a Website Structure CSS Reset

red/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

You 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

You have an error somewhere in your code. Can you paste in your code so that we can have a look? :)

Thanks!

Sure 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 &amp; 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 &amp; 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 &amp; 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>&copy; 2012 Smells Like Bakin' Cupcake Company. All Rights Reserved.</p>
      </div>

  </div>
</body>
</html>

*tried fixing the <meta http-equiv="...

line

Thanks 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?

Would need to see your corrections. :P

Oh, 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 &amp; 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 &amp; 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 &amp; 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>&copy; 2012 Smells Like Bakin' Cupcake Company. All Rights Reserved.</p>
      </div>

  </div>
</body>
</html>

You need to fix the code there. Place a space after the HTML. :P

It sounds like you know what's going on. What do you mean "Place a space after the HTML"?

The 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

'''

The 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!

That 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 &amp; 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 &amp; 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 &amp; 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>&copy; 2012 Smells Like Bakin' Cupcake Company. All Rights Reserved.</p>
      </div>

  </div>
</body>
</html>

One 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.

Yeah that makes sense. Linked CSS files in css folder as denoted by del link. Got it working now. :-)

Thanks Adam!

Great! :)

Code well!