Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Code Challenge 3/3

I'm getting a bummer! null message when I go to check my work: I've passed all the way to this point. It says to change the h1 css color to green. What am I doing wrong, we haven't gone over other ways to write color besides spelling it out yet? Why is it wrong?

<body>
  <style>
    h1 {
      color: green;
    }
    <h1>Nick Pettit</h1>
  </style>
</body>

2 Answers

Stone Preston
Stone Preston
42,016 Points
<style>
    h1 {
      color: green;
    }
    <h1>Nick Pettit</h1>
  </style>

you have that h1 tag inside the style tags, it needs to be below the opening and closing style tags, not inside it. everything else looks good

Thank you! I appreciate your quick response! =)

Hi Alisha!

I just wanted to check to see that you have your style tag set up as below:

<body>
    <style>
       h1 {

      }
    </style>
    <h1>Nick Petit</h1>
</body>

I do now! (have my style tags set up that way) lol oops, thanks for helping!