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

Can't progress to the next task: change H1 color to green. Text looks green in the preview screen but says I am wrong.

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

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

3 Answers

Samuel Webb
Samuel Webb
25,370 Points

Your code looks good. Maybe refresh the page and do it again. I went through and just copy/pasted your code into mine and it went through all three perfectly.

Sometimes adding the semi-colon to the end of a rule will cause it to not pass if it's the only rule. Try submitting it without the semi-colon.

That was the only rule for this exercise. It was the browser cache, for some reason it accepted the code as-is, after I cleared the browser cache and started over from the beginning. Odd! Thanks for the advice.