Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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! :-)

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

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 : )