"CSS Basics (2014)" was retired on July 12, 2021. You are now viewing the recommended replacement.

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

Can somebody help me out with this (Noob code line)

Challenge task 3 of 3 Nice! Finally, set the color of the h1 element to green.

I've tried to start a line 10 of code to color a new h1 of green but it doesn't work neither does puting the color: green; between like 4 and 6... What should I do then?

1 <body>
2
3  <style><style>
4 h1 {
5 Nick Pettit 
6 }
7 </style></style>
8    <h1>Nick Pettit</h1>
9 </body></p>
            ```
Julian Gutierrez
Julian Gutierrez
19,201 Points

Well the style tag should be formatted like this.

<style>
css goes here
</style>

4 Answers

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

Is what your code should look like. Don't hesitate to go back and watch videos :)

Good luck with the rest of the course, Max.

Put your style rules in between the style tags eg:

<body>
  <style>
      /* your rules here */
  </style>
    <h1>Nick Pettit</h1>
</body>
Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Max;

I believe you are almost there. Try

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

Ken

Fabion Stephens Ken Alger Bryan H thanks for your support y'all very helpful, appreciate it

You are welcome Max! Happy coding!