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

Changing the h1 element to green!

i used shortcut keys to eraze the word blue and rewrote the colour green in its place this is not accepted and i keep getting bummer null! Why?

17 Answers

Carolyn H
Carolyn H
1,369 Points

I believe it's because you need to spell "colour" the american way 'color'. Hope that fixes it for you!

Hi Carolyn, Thank you for reply, This is how i wrote it and it wont work :( <body> <style> h1 {color: green;} <h1>Emma Pearce</h1> </style> </body>

Carolyn H
Carolyn H
1,369 Points

Hi Emma, It should look something like this: <style> h1 { color:green; } </style> <h1>text here</h1> Hope that helps!

we've written the same thing and mine doesn't work!! so ive got body, then style, then h1 color and green, then h1 emma pearce, close h1, then close style, then close body! so why is it wrong so frustrated!!

Carolyn H
Carolyn H
1,369 Points

Can you copy and paste the code you've done? That may help

<body> <style> h1 {color: green;} <h1>Emma Pearce</h1> </style> </body>

<body> <style> h1 {color: green;} <h1>Emma Pearce</h1> </style> </body>

Try to use a space before color and after the semi colon.

ok nicolas i will try thank you

Carolyn H
Carolyn H
1,369 Points

I realized mine did that as well! do you have it written so that it says h1{ (then press enter and write on a new line colour: green; and then on the following line the closing bracket }

Most programers prefers to do it that way Carolyn did it. Here's an example on how you can do it

h1 {
color:orange;
}

wow so that still doesn't work yes ive written it as it was taught :(

I've found my mistake! i had the </style> in the wrong place!! Thank you so much for all your help so far, i really appreciate it, i get so frustrated when i cant get it straight away! I guess im going to have to get used to it!!

Carolyn H
Carolyn H
1,369 Points

:( Have you made sure to write style opened and closed above and below the h1 and color info?

What did you put wrong, may I ask?

why does this text box keep deleting what i write when its in html format?? i put the style close after the h1 title instead of before it

this worked for me <body> <style>

h1 { 
  color:green;
}

</style> <h1>channon</h1> </body> im 9 hope this helps