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

jamie Macdiarmid
jamie Macdiarmid
2,048 Points

Stuck

Is this not right?

index.html
<style>
  h1 {
    color: green:

  }


</style>
<h1>Nick Pettit</h1>

2 Answers

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Yes Paul is right the colon at the end of your value is messing up the style. All values are terminted with a semi colon rather than a colon.

h1 {
    color: green;

  }

Thanks Jonathan, no idea why I added it as a comment rather than an answer - I blame Monday! :)

You have a colon rather than a semi-colon at the end.