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 How to Make a Website Beginning HTML and CSS Write a CSS Selector and Property

Philip Schultz
Philip Schultz
11,437 Points

what am I doing wrong?

what is a style tag. I typed <style> hi {color:blue}</style>.

Philip Schultz
Philip Schultz
11,437 Points

I mean i typed <style>h1 {color:blue}</style>

10 Answers

The style tags should be above the h1 This was mentioned in the first task I believe. And the color should be green.

The following passes and you can compare to your own.

<body>
  <style>
    h1 {
      color: green;
    }
    </style>
    <h1>Nick Pettit</h1>
</body>
Philip Schultz
Philip Schultz
11,437 Points

thank you i got it. I tried to put the style above the body. thank you

This thread is the perfect example of how such little information delays the response effectiveness of the reply.

In future posts and for others reading this, please be more specific in your OPs for the sake of a few minutes. It can save a long time, in this case roughly 10 hours.

Kofi Opoku
Kofi Opoku
7,432 Points

Did you place it in style tag like this? <style>h1 {color:blue}</style>

Philip Schultz
Philip Schultz
11,437 Points

yes the preview work. it turns my name blue. But an error message pops up that says "bummer. remember to use your style tags.

The css should be between opening and closing style tags since this is in the html.

<style></style>

Also, the color specified in task 3 is green.

Philip Schultz
Philip Schultz
11,437 Points

<style> h1 {color:green} </style>

<body> <h1>Parker Schultz</h1> </body>

Here's a post on how to put code in the forums. https://teamtreehouse.com/forum/posting-code-to-the-forum

If you're still not passing then post all the html that is in the challenge. The forums are stripping out your html and so it's hard to know what you've actually typed in the code challenge.

Philip Schultz
Philip Schultz
11,437 Points

this is my first time using this. It is not letting me copy past the code to the discussion board.

Philip Schultz
Philip Schultz
11,437 Points

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

Maybe it wishes you to write it with the ; after the color aka blue;}

Philip Schultz
Philip Schultz
11,437 Points

`<style> h1 {color:blue;} </style>

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

Still says the same error "bummer, don't forget you style tags"

Have all tags been closed above? Making sure no cascading errors occur.

Philip Schultz
Philip Schultz
11,437 Points

thank you i got it. I tried to put the style above the body. thank you

Philip Schultz
Philip Schultz
11,437 Points

Thank you everybody. I did not realize that the style tags had to be in the body.

Normally they would be in the <head> section if you had an internal stylesheet. But this challenge didn't have a head section and so we need to put it in the body.