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

CSS How to Make a Website Beginning HTML and CSS Write a CSS Selector and Property

Am I missing a "Style Tag"?

Bummer error.

index.html
  <style>
    h1 {
      color: blue;
    }
  </style>  
  <h1>Christian Weatherbe</h1>

3 Answers

I think you might be missing the body tag. It must wrap the style and h1 tag.

No he is doing one of the first lessons in html/css. And there is no body tag needed, yet. I can't see a problem to be honest, maybe just refresh the page and do it all over again, I had some trouble with the tree house just a couple of minutes ago

Do you have other rules that may counter the one you're showing?

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hi Christian, You deleted the body tags that were there when the challenge came up. Sorry, Michael, the body tags do NEED to be there or the challenge compiler will not allow you to pass.

Just put the body tags back in and you will be good to go. (Also, both style tags need to be above the h1 tag). And just so you know, whatever is in the challenge when it comes up MUST stay there or it will not allow you to pass.

<body>
  <style>
  </style>
    <h1>Nick Pettit</h1>
</body>

Happy Coding! Jason :)