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 trialDanny Lopez
107 PointsHow do I do this?
How do I do this?
9 Answers
Chase Lee
29,275 PointsYou need to type h1
in the selector format. It will look something like this:
selector{}
Josh Page
1,928 PointsWhat is the question?
Danny Lopez
107 PointsNow, write CSS that will select the h1. Donβt forget your curly braces!
Chase Lee
29,275 PointsWhich task do you need help with? What have you tried?
Danny Lopez
107 PointsGot it. Thank you!!!
Danny Lopez
107 PointsNice! Finally, set the color of the h1 element to green.
Need help with this one now...
Chase Lee
29,275 PointsDo 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.
Danny Lopez
107 Points<body> <style> {h1 color:green;
}
</style> <h1>Nick Pettit</h1> </body>
Chase Lee
29,275 PointsYou 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.
Danny Lopez
107 PointsDang it! Just got it though...thanks again!
Chase Lee
29,275 PointsChase Lee
29,275 PointsPut that inside of your
style
tags.