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 trialWhitney Honour
103 Pointsenter style tag
I have entered in the style information correctly. When I preview my work it shows correct, however I keep getting an error to enter in a style tag, but it is already there.
<style>
h1 {
color: blue;
}
</style>
<h1>Whitney Honour</h1>
2 Answers
Radu Ioan Stochita
3,558 PointsFirstly, you don't have the body tags which might cause an error in your code, add it and it should work fine.
<body>
<style>
h1 {
color: green;
}
</style>
<h1>Nick Pettit</h1>
</body>
It will be better if you would like to keep everything aligned as I did up there.
I hope that it helps!