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 trialmoses oteyo
243 PointsNow 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.
<style>
h1{
color: red;
}
</style>
2 Answers
Ronav Saundh
8,070 PointsHi, you have to make the color green. Your color is red.
<style>
h1 {
color: green;
}
</style>
<h1>Nick Pettit</h1>
Cheers, Ron.
moses oteyo
243 PointsThanks much Ron, it worked.
Ronav Saundh
8,070 PointsHi, good for you. Please select this as best answer if you feel everything is ok. Cheers, Ron