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 How to Make a Website Beginning HTML and CSS Write a CSS Selector and Property

What is wrong with this code? <style> {h1 color: green; } </style> <h1>Tim Chesonis</h1>

I followed this to the letter, when entering "blue" as instructed, it worked. When changing the color to "green", it says, "Bummer! Make sure . . . . "

Please advise.

index.html
<style>
  {h1
    color: green;
  }
</style>

<h1>My Name</h1>

3 Answers

Steven Parker
Steven Parker
231,198 Points

:point_right: It looks like you accidentally placed your selector inside the braces instead of in front of them.

There's a bug in the challenge checker. That should NOT have passed the second task. You might want to report this to Treehouse Support, it might get you a special "Exterminator" badge.

Brandon McClelland
Brandon McClelland
4,645 Points

h1 { color: green; } Agree with Steven, you definitely should report it.

Thank you all. Wow, that was a fast response, and as you have suggested, I did report this issue to Treehouse Support.