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

I m stuck can u help me?

please I m stuck tell me what to do i ve added the style but i can t go to next step 3, why?

10 Answers

Eivind Jonassen
Eivind Jonassen
5,994 Points

Try this then :)

<body>
  <style>
  body h1 {
    color: green;
  }
  </style>
    <h1>Nick Pettit</h1>
</body>
Maximiliane Quel
PLUS
Maximiliane Quel
Courses Plus Student 55,489 Points

I looked at your challenge again. the problem has nothing to do with your selection but that the question was asking you to change the color to green and you wrote purple

therefore:

h1 { color: green; }

is specific enough inside or outside of treehouse

Maximiliane Quel
PLUS
Maximiliane Quel
Courses Plus Student 55,489 Points

in order for us to help you you need to copy the code that you are trying to put in and paste it here.

Maximiliane Quel
Maximiliane Quel
Courses Plus Student 55,489 Points

it also helps if you repeat the question here and or state which exact challenge you are trying to solve so that we can follow along

<style>

h1 { color: purple; {

</style> <h1>Adina Iulia</h1>

<style>

h1 { color: purple; {

</style> <h1>Adina Iulia</h1>

so I ve done this but it keeps saying to add the style and I can t go to the next step...

Maximiliane Quel
PLUS
Maximiliane Quel
Courses Plus Student 55,489 Points

you have a left instead of a right curely bracket ending you css rule

h1 { color: purple; }

<style>

h1 { color: purple; }

</style> <h1>Adina Iulia</h1>

I have put like this but it s not working either

Thank a lot! that helped!

Eivind Jonassen
Eivind Jonassen
5,994 Points

Thats good to hear :) What it does is that it first tells it to target the body and then inside of body target the h1.

h1 { color: purple; }

If you wrote this in a project of your own (not a challenge here on treehouse) it would have given you the same result, because it basically targets all h1 elements on your page. At least thats what I think it does. Good luck onwards :)

Thanks ! Got it now! good luck !