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

Adding Style to the Page Challenge

When I get to the last task in the challenge it tells me to change it to green and I do but it tells me I am wrong. I have tried getting it right and cannot figure it out. Please help me!

could you copy and past what your css looks like? it should look like this

  <style>
    h1 {
    color: green;
    }

  </style>

I passed the challenge now but I can't change the color on my workspace. I put in h1{color:green;}

I then look at a preview and it was still black.

3 Answers

could you copy and past what your css looks like? it should look like this

  <style>
    h1 {
    color: green;
    }

  </style>

Post the question and your answer so we can see whats wrong.

I passed the challenge now but I can't change the color on my workspace. I put in <style> h1{color:green;} </style>

I then look at a preview and it was still black.

Elena Newton
Elena Newton
39,588 Points

hi Marta,

in css, "color" controls the color of the text. if you want to change the color of the background (e.g. a fill color) then you would use

background-color:

good luck!

It's also important to remember that when doing coding challenges, you'll need to hit the "refresh" button while you're in the preview window. I don't think any new changes show up until that refresh button is hit.