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 trialMax Gutiérrez
301 PointsCan somebody help me out with this (Noob code line)
Challenge task 3 of 3 Nice! Finally, set the color of the h1 element to green.
I've tried to start a line 10 of code to color a new h1 of green but it doesn't work neither does puting the color: green; between like 4 and 6... What should I do then?
1 <body>
2
3 <style><style>
4 h1 {
5 Nick Pettit
6 }
7 </style></style>
8 <h1>Nick Pettit</h1>
9 </body></p>
```
4 Answers
notf0und
11,940 Points<body>
<style>
h1 {color: green;}
</style>
<h1>Nick Pettit</h1>
</body>
Is what your code should look like. Don't hesitate to go back and watch videos :)
Good luck with the rest of the course, Max.
Fabion Stephens
Courses Plus Student 5,893 PointsPut your style rules in between the style tags eg:
<body>
<style>
/* your rules here */
</style>
<h1>Nick Pettit</h1>
</body>
Ken Alger
Treehouse TeacherMax;
I believe you are almost there. Try
<body>
<style>
h1 {color: green;}
</style>
<h1>Nick Pettit</h1>
</body>
Ken
Max Gutiérrez
301 PointsFabion Stephens Ken Alger Bryan H thanks for your support y'all very helpful, appreciate it
Fabion Stephens
Courses Plus Student 5,893 PointsYou are welcome Max! Happy coding!
Julian Gutierrez
19,201 PointsJulian Gutierrez
19,201 PointsWell the style tag should be formatted like this.