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

How do I do this?

How do I do this?

9 Answers

Chase Lee
Chase Lee
29,275 Points

You need to type h1 in the selector format. It will look something like this:

selector{}
Chase Lee
Chase Lee
29,275 Points

Put that inside of your style tags.

Josh Page
Josh Page
1,928 Points

What is the question?

Now, write CSS that will select the h1. Don’t forget your curly braces!

Chase Lee
Chase Lee
29,275 Points

Which task do you need help with? What have you tried?

Got it. Thank you!!!

Nice! Finally, set the color of the h1 element to green.

Need help with this one now...

Chase Lee
Chase Lee
29,275 Points

Do you know how to use the color in a selector? If you do the set its value to green. Remember to put it inside of the h1 selector.

<body> <style> {h1 color:green;

}

</style> <h1>Nick Pettit</h1> </body>

Chase Lee
Chase Lee
29,275 Points

You are sooo close! Just put the h1 on the other side of the curly bracket. The reason is because h1 is what you want to style, and inside of the bracket is what the styles should be.

Dang it! Just got it though...thanks again!