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

stuck on an exercise.

trying to change h1 element to green.

7 Answers

h1{
    color: green;
}

so...

selector{
    property: value;
}
Joe Hirst
PLUS
Joe Hirst
Courses Plus Student 6,489 Points

Can you post the question?

Your answer will need to be along the lines of:

h1{
    color: green;
}

If you need a precise color you will use a hex value

The 'style' tag should be between the 'head' tags, also your style tag at the end should be closed - /style.

Your css is fine, it's the html that is the problem.

It doesn't seem to like what I enter. This discussion space looks like it needs a photo sharing tool.

Paste the code in here, use 3 tics on the line above and below to make it display like a code block. (the tics are the key to the left of the '1' key and not apostrophes).

<body>
    <style>  

    h1 {
      color: green;
    }

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

Awesome! Thanks Howard!