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

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!