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 trialJonavan Helom
2,593 PointsI don't get the first part of the challenge, do you want me type in a new style or CSS?
where do I write the CSS at?
<style>
H1 {CSS
color: Green;
}
</style>
<h1>Jon</h1>
1 Answer
andren
28,558 PointsYou are meant to write it within the <style> tags, just like you are doing.
The issue with your solution is not the placement of the CSS, but rather that there are two issues with your CSS code:
case matters when writing selectors. You select the
h1
element by typingh1
, notH1
.The Word "CSS" does not belong within your
h1
rule.
If you fix those two issues like this:
<style>
h1 {
color: Green;
}
</style>
<h1>Jon</h1>
Then your code will work. It's also worth mentioning that the challenge never asked you to change the name found within the h1
tag. Doing so won't cause an issue in this specific challenge, but you should in general never change any code you are not asked to change. Doing so will often break the challenge.