Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML

I modified the code like the video, but the heading is still black.

When I hit the preview button, the heading, "Nick Petit", is still black. Here's my code for index.html in my workspace:

<style>

  h1 {
    color: blue;
  }

</style>
<h1>Nick Pettit</h1>
Samuel Manas
Samuel Manas
796 Points

Did you save your changes?

3 Answers

It also occurred to me that you did not enclose the h1 tag with the body tag. I will take the challenge and post passing code.

Here is the passing challenge code:

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

If this is from the code challenge, the problem is that you made the color blue, not green.

Saving changes was my thought also. I don't see anything wrong with the code.

Samuel Manas
Samuel Manas
796 Points

If saving doesn't work, show us a bigger snapshot just so we can double-check everything! :)

Thanks, I added the <body> tag and it worked!