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 trialKim O'Donnell
663 PointsSorry I don't understand what I'm supposed to be doing for this task?
If I could read the instruction (challenge task 2 of 3) which I can't because it's totally hidden by this pop up box, I'd include it here, but basically I don't understand what I'm being told to do.
I'll have another look but it looked like you couldn't skip a task or come back to it so I'm hoping I won't have to wait to get a reply before I can resume classes.
Cheers Kim
<body>
<style>
h1{
color: red;
}
</style>
<h1>Nick Pettit</h1>
</body>
4 Answers
Greg Kaleka
39,021 PointsHi Kim!
You should contact Treehouse support (help@teamtreehouse.com) about the pop-up issue.
For now, the challenge asks you to write a rule that targets h1. You've actually done that, but you're adding in code that you don't need to add yet. Your index.html should look like this:
<body>
<style>
h1 {
}
</style>
<h1>Nick Pettit</h1>
</body>
Piotrek Smyda
3,786 PointsInstruction for this taks is :
Now, write CSS that will select the h1. Don’t forget your curly braces!
Jeff Lemay
14,268 PointsTask 2: Now, write CSS that will select the h1. Don’t forget your curly braces!
h1 { }
That's all task 2 is asking you to do. This would not produce any actual changes because you haven't added properties to style the h1. The challenge is just getting you accustomed to writing css, things will get more complex as you go.
Your code is correct (although my challenge wanted me to make the text green, not red).
Kim O'Donnell
663 PointsAhhh - gotcha!! Thanks very much everyone for your quick response - much appreciated :)
I7x C0d3R
Courses Plus Student 270 PointsI7x C0d3R
Courses Plus Student 270 PointsWrite Place The Red The Green h1 { color:green; }