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

I am stuck on this exercise, I keep typing {<h>color:green;<text></h>what is the problem

ARG

2 Answers

geoffrey
geoffrey
28,736 Points

Try to be clear, avoid typing 'all' the code in the title. Use the markdown sheet, that's better and easier to read the code you post, even more when you'll have bigger issue to solve. :)

The mistake probably comes from the way you typed the selector, as It's a CSS selector, you don't need to type it as a tag, I mean if you want to select '<h1>' elements, just type 'h1' as selector.

Here is the code

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

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

Hope it helps.

Ahh, I didn't type the curly bracket after the ; THAT was my problem. Thanks!

yeah, it was... I just didn't type it that way in this post. Good catch