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 trialThiago Reis
2,247 PointsWhy is it saying I'm forgetting my style tag?
<style> h1{ color: red; } </style><body> <h1>Nick Pettit</h1> </body>
<style>
h1 { color: red;
}
</style>
<h1>Nick Pettit</h1>
3 Answers
Marcus Parsons
15,719 PointsHey Alvarez,
The problem is that the color should be green
not red
. Your code is correct, otherwise.
Ted Sumner
Courses Plus Student 17,967 PointsYes, following directions is very important.
Marcus Parsons
15,719 Points+1 to this, my friend.
Ted Sumner
Courses Plus Student 17,967 PointsI would have to test this in the challenge, but try this:
<style>h1{color:red;}</style>
<h1>Nick Pettit</h1>
Spacing sometimes matters even when the code is technically correct.