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 trialJames Simmerman
1,385 Pointsstuck on an exercise.
trying to change h1 element to green.
7 Answers
Howard Slatter
8,049 Pointsh1{
color: green;
}
so...
selector{
property: value;
}
Joe Hirst
Courses Plus Student 6,489 PointsCan you post the question?
Your answer will need to be along the lines of:
h1{
color: green;
}
If you need a precise color you will use a hex value
Howard Slatter
8,049 PointsThe 'style' tag should be between the 'head' tags, also your style tag at the end should be closed - /style.
Your css is fine, it's the html that is the problem.
James Simmerman
1,385 PointsIt doesn't seem to like what I enter. This discussion space looks like it needs a photo sharing tool.
Howard Slatter
8,049 PointsPaste the code in here, use 3 tics on the line above and below to make it display like a code block. (the tics are the key to the left of the '1' key and not apostrophes).
James Simmerman
1,385 Points<body>
<style>
h1 {
color: green;
}
<style>
<h1>Nick Pettit</h1>
</body>
James Simmerman
1,385 PointsAwesome! Thanks Howard!