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

CSS How to Make a Website Beginning HTML and CSS Write a CSS Selector and Property

Robert French
Robert French
2,219 Points

Challenge task 3 of 3 (How to make a website)

When being asked to set the style color to green for the h1 tag, why does h1 { color: #00FF00; } fail.

index.html
<body>
  <style>
  h1 {
    color: #00ff00; 
  }
  </style>
  <h1>Nick Pettit</h1>

</body>
Niall Maher
Niall Maher
16,985 Points

It isn't asking for a hex value for green as there is so many shades of green that could be chosen. That's why you should just write ;

h1 {
color:green;
}

1 Answer

Robert French
Robert French
2,219 Points

Thanks Naill, but my question is more about addressing broken questions in the quizzes. I'm not new by any stretch of the imagination, I just think that if the question isn't going be specific about the color of green, any green should provide a passing answer (and color: green;) is bad form.