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

does not work cannot go pass to the next

cannot move to the next level.

preview shows color change

index.html
<style>

  h1 {

  color: blue;

  }

</style>

<h1>Nick Pettit</h1>
Ryan Botha
Ryan Botha
1,874 Points

I think the question wants the code in the css file not in the html file.

4 Answers

Jinson Abraham
Jinson Abraham
1,700 Points

Try proper css embed tags - Example

Andreas Anastasiades
Andreas Anastasiades
2,916 Points

Use the separate file to place your css and it will work

hi Paul everything looks okay i tried the challenge just now and its asking for the color green, so just check again or try my code.

<body>
  <style>
    h1 {color: green;}
  </style>
    <h1>Nick Pettit</h1>
</body>
Caleb Kleveter
MOD
Caleb Kleveter
Treehouse Moderator 37,862 Points

Paul's code is valid, the code challenge wants the h1 to be set to green, not blue.