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

Why does it say "don't forget style tag" it's correct in preview?

I did as the video explained and it worked in the preview but the screen keeps saying "Bummer, don't forget style tag".

index.html
<style>

  h1 {
    color: blue;
  }

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

4 Answers

Emma Willmann
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Emma Willmann
Treehouse Project Reviewer

In your code, you don't show the body tags. Did you remove those? The challenge won't work without them.

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

I was able to pass the challenge with your provided HTML. I would re-load the challenge and try again.

Thank you Emma and Colin - yes I deleted the body tags as I don't remember it being covered in my sample on my Workspaces and so I took it off. Fortunately I regained my wits and did as Colin had said and went back to the beginning, and put the style tags between the body tags. For some reason I don't know if the video mentioned the body tags so I got confused. Thanks for your time.

Emma Willmann
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Emma Willmann
Treehouse Project Reviewer

Glad it worked. It's usually best to keep the code they give you and add to it. I can't think of any challenge that they've had me delete anything on the first task. There are some where they have you add something, then delete it or change it on the 2nd time. :-)

Thanks Emma, that's a good tip.