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

Bummer! Make sure you're selecting the h1 tag in your style.

Hi, I'm working on step 2 of "Code challenge, Write a CSS selector and Property. I don't know why I'm getting this message.

code:

<body> <style> {

}

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

Oh I'm sorry I copied and pasted the code thinking it would show up properly.

5 Answers

Ok, It turns out that I solved that problem but now I have a new one. "Bummer! Make sure you're coloring the h1 tag green."

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

Now I'm not sure how I should show it.

Ignore the little <p> bits.

Hey Timothy! When writing CSS, the format should be as follows:

SELECTOR { PROPERTY: VALUE; }

So for your example, to make all first-level headers green, we would format the CSS coding as:

h1 { color: green; }

the same problem i am getting.