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'm typing in the correct answer I think but it's saying I'm not making the test green

I'm in the task challenge and I types }color:green; but it won't let me advance. What is the correct answer? I would like to take the next video but I can't until I pass this challenge.

2 Answers

Make sure to put a space after the colon. { color: green; } (for CSS)

for HTML

            <font color="green">This is some text!</font>
Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Toni;

For this challenge you will want to add the color: green; code to the h1{} selector you created in Task 2. Your final code should look like:

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