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

What am I doing wrong

I cannot get the challenge h1 to turn green <style> h1 { color: green; } </style>

4 Answers

Alex Hedley
Alex Hedley
16,381 Points

Did you wrap it in style tags like the questions says?

<style></style>

yes I did that

Jacob Miller
Jacob Miller
12,466 Points

Your code should look like this:

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

That is exactly how I wrote it .Still says I am wrong. hmm

Usman Sheikh
Usman Sheikh
2,860 Points

Can you post the code that's not working?

good question does anybody know if we can do that ? and how? I have a feeling im going to be needing to know that.lol

Jacob Miller
Jacob Miller
12,466 Points

Check out the video to the right called "Tips for asking questions". They show you how to post code.

I did use my own name like instructed to in the video. I did not preview the blue before changing to green I wonder if that is it? stuck

Alex Hedley
Alex Hedley
16,381 Points

Part 1 just asked for the style nothing else, try just adding

<body>
  <style>
  </style>
    <h1>Nick P</h1>
</body>