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

First CSS Challenge

I have done just what was said in the video tutorial but I seem not to get it right, what could I be possibly doing wrong?

James Ingmire
James Ingmire
11,901 Points

Need the question to answer you!

sorry I didn't get that

James Ingmire
James Ingmire
11,901 Points

Well what is your question? Cant answer "I have done just what was said in the video tutorial but I seem not to get it right, what could I be possibly doing wrong?"

3 Answers

Daksh Shah
Daksh Shah
3,534 Points

Hi Ebenezer!

Here's the correct answer to the code challenge you're stuck on:

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

Happy learning!

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

Is this correct?

James Ingmire
James Ingmire
11,901 Points

Yes that changes the text color to green.

Thank you, I just realized I didn't follow up my <style> with its corresponding </style>