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

I feel as if I'm doing the challenge right, but it keeps saying "Don't forget the style tag." Help?

I put in the right code, but it still says I'm wrong and if I am wrong what do I do to save this?

index.html
<style>

  h1 {
    color: blue;
  }

</style>
<h1>brian reyes</h1>

No, the style tag is not inside the head tag.

how should it be inside the head tag?

2 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hi Brian,

Jacob is right. When the challenge loaded for you, there was already code in the window. This cannot be deleted or the challenge will not allow you to pass.

The challenged opened with

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

From there, you are to add a style element (both opening and closing) just above the <h1>. So, you make a line space between the body and h1 (but do not delete the body tags.)

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

Keep Coding and Welcome to Treehouse! :)

The style tag should be inside of your head tag, is this true with your code?