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.

CSS How to Make a Website Beginning HTML and CSS Write a CSS Selector and Property

Adding a style element

getting error message

"Bummer! Don't forget to add your style tag.

When I preview it seems to work OK, not sure what ive done wrong. The interface doesnt let me proceed till ive got this right, which I would like to do.

Thanks in advance

D

index.html
<style>

    h1 {
      color: orange;
    }

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

4 Answers

Your closing style tag is malformed.

Ryan Hemrick
Ryan Hemrick
12,759 Points

Hello David,

You seem to have forgotten to close your style tag properly.

You have </style

It should be </style>

Hope this helps!

Hi David,

Just looks like you are missing the closing angle bracket on the ending style tag.... Also the code is not wrapped in a "head" tag that I can see?

<html>

  <head>

    <style>

      <!--  Styling goes here  -->

    </style>

  </head>

</html>

Hope this helps!

Craig

Thanks guys. tutorial has given me a "correct" Ive tried pasting the code as amended but it shows something different each time a post it.

No worries

Thanks again D