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

my code is working but it shows bummer.

my code is working and it executes properly but still showing bummer!

index.html
<style>
    h1 {
    color: red;
      }
</style>
<h1>ritu kaur</h1>

It looks good to me, except that when I take that challenge, it wants me to set the color to green. Does it say red for you? If I do red, it fails me too.

1 Answer

Your h1 should reside inside the body tag and your style inside the head tag.

Jack Gordon
Jack Gordon
9,232 Points

I agree with Pedro. The CSS you have written is correct but if it isn't working maybe it is because your text is not in the body tag.