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

Am I missing something?

Got to challenge task 3 where it states; "Nice! Finally, set the color of the h1 element to green."

so I have added it to the css it asks you to add;

h1 { color: green; }

Result = Bummer! null

So I tried adding it inline; <h1 style="color: green">Text goes here</h1>

Result = Bummer! null

So what am i missing, pretty sure it not me???

2 Answers

Hi Tony,

The syntax you are using is correct. You are doing the "How to Make a Website" project right? I just tried the code below and it accepted it. So if this is the same thing that you are entering, then it must be a bug. Try refreshing your browser and doing the challenge again. Good luck! :-)

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

yes i'm really sorry, I have literally just realised i had left out the trailing </style> doh! Added and all works perfectly. Thanks you very much for your time :)

No problem, happy to help : )