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

Step 3 of 3 errors

The first two steps are fine, but when going from blue to green it gives an error that it was incorrect.

index.html
<body>
  <style>

    <h1> {
    color: green;
    }

  </style>
    <h1>Nick Pettit</h1>
</body>
Clint Dehner
Clint Dehner
8,808 Points

when your writing in style tags an your looking to select an element you can just do this.

<body>
  <style>

    h1 {
    color: green;
    }

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

you were basicly creating a h1 tag in your style hope that helps :)

2 Answers

Hey Jay,

You almost got it. You don't use the angle brackets when writing a CSS selector. It's simply h1

See here -

h1 {
    color: green;
  }

Ah jeez...thanks you two ;)