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

Sorry I don't understand what I'm supposed to be doing for this task?

If I could read the instruction (challenge task 2 of 3) which I can't because it's totally hidden by this pop up box, I'd include it here, but basically I don't understand what I'm being told to do.

I'll have another look but it looked like you couldn't skip a task or come back to it so I'm hoping I won't have to wait to get a reply before I can resume classes.

Cheers Kim

index.html
<body>
  <style>
    h1{
      color: red;
    }
   </style>

    <h1>Nick Pettit</h1>

</body>

Write Place The Red The Green h1 { color:green; }

4 Answers

Greg Kaleka
Greg Kaleka
39,021 Points

Hi Kim!

You should contact Treehouse support (help@teamtreehouse.com) about the pop-up issue.

For now, the challenge asks you to write a rule that targets h1. You've actually done that, but you're adding in code that you don't need to add yet. Your index.html should look like this:

index.html
<body>
    <style>
      h1 {

      }
    </style>
    <h1>Nick Pettit</h1>
</body>
Piotrek Smyda
Piotrek Smyda
3,786 Points

Instruction for this taks is :

Now, write CSS that will select the h1. Don’t forget your curly braces!

Jeff Lemay
Jeff Lemay
14,268 Points

Task 2: Now, write CSS that will select the h1. Don’t forget your curly braces!

h1 { }

That's all task 2 is asking you to do. This would not produce any actual changes because you haven't added properties to style the h1. The challenge is just getting you accustomed to writing css, things will get more complex as you go.

Your code is correct (although my challenge wanted me to make the text green, not red).

Ahhh - gotcha!! Thanks very much everyone for your quick response - much appreciated :)