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 trialemma pearce
1,712 PointsChanging 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
1,369 PointsI believe it's because you need to spell "colour" the american way 'color'. Hope that fixes it for you!
emma pearce
1,712 PointsHi 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
1,369 PointsHi Emma, It should look something like this: <style> h1 { color:green; } </style> <h1>text here</h1> Hope that helps!
emma pearce
1,712 Pointswe'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
1,369 PointsCan you copy and paste the code you've done? That may help
emma pearce
1,712 Points<body> <style> h1 {color: green;} <h1>Emma Pearce</h1> </style> </body>
emma pearce
1,712 Points<body> <style> h1 {color: green;} <h1>Emma Pearce</h1> </style> </body>
Nicolas Wong
4,528 PointsTry to use a space before color and after the semi colon.
emma pearce
1,712 Pointsok nicolas i will try thank you
Carolyn H
1,369 PointsI 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 }
Nicolas Wong
4,528 PointsMost programers prefers to do it that way Carolyn did it. Here's an example on how you can do it
h1 {
color:orange;
}
emma pearce
1,712 Pointswow so that still doesn't work yes ive written it as it was taught :(
emma pearce
1,712 PointsI'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
1,369 Points:( Have you made sure to write style opened and closed above and below the h1 and color info?
Nicolas Wong
4,528 PointsWhat did you put wrong, may I ask?
emma pearce
1,712 Pointswhy 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
channonhall
12,247 Pointsthis worked for me <body> <style>
h1 {
color:green;
}
</style> <h1>channon</h1> </body> im 9 hope this helps