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!

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

Now write CSS that selects h1

The first task is about adding style element, the next task is about selecting h1. I am stuck. I tried the code below but it is not working. h1{ color: red; } What is the complete code of task one and task two? Thanks.

color: red;

2 Answers

Hi, you have to make the color green. Your color is red.

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

Cheers, Ron.

Thanks much Ron, it worked.

Hi, good for you. Please select this as best answer if you feel everything is ok. Cheers, Ron