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

Nayah W
PLUS
Nayah W
Courses Plus Student 1,257 Points

Don't know what I'm doing wrong?

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

4 Answers

Stone Preston
Stone Preston
42,016 Points

you have two opening style tags instead of an opening and a closing:

you need to use

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

instead of

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

Darn it I missed that one. Good spot :)

Yeah me too. Man you guys answer fast. I'm trying to get some answers in here and you guys keep taking them all! Haha.

Haha sorry Dylan Dixon will try stay off the forum this evening. Let you grab a few questions. I know they are valuable learning aid, as you get a good feeling knowing you solved a problem. :)

:P

The code you have looks correct. But here is the full code for you to check. I just passed it with what is below.

    <body>
      <style>
        h1 {
          color: green;
        }
      </style>
      <h1>Nick Pettit</h1>
    </body>
Nayah W
PLUS
Nayah W
Courses Plus Student 1,257 Points

Thats what I put but it didnt work, I don't know what I did wrong but thanks.

Stone Preston
Stone Preston
42,016 Points

see my post for what was incorrect with your original answer