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 trialPhilip Schultz
11,437 Pointswhat am I doing wrong?
what is a style tag. I typed <style> hi {color:blue}</style>.
10 Answers
Jason Anello
Courses Plus Student 94,610 PointsThe style
tags should be above the h1
This was mentioned in the first task I believe. And the color should be green.
The following passes and you can compare to your own.
<body>
<style>
h1 {
color: green;
}
</style>
<h1>Nick Pettit</h1>
</body>
Philip Schultz
11,437 Pointsthank you i got it. I tried to put the style above the body. thank you
Thomas Regan
2,032 PointsThis thread is the perfect example of how such little information delays the response effectiveness of the reply.
In future posts and for others reading this, please be more specific in your OPs for the sake of a few minutes. It can save a long time, in this case roughly 10 hours.
Kofi Opoku
7,432 PointsDid you place it in style tag like this?
<style>h1 {color:blue}</style>
Philip Schultz
11,437 Pointsyes the preview work. it turns my name blue. But an error message pops up that says "bummer. remember to use your style tags.
Jason Anello
Courses Plus Student 94,610 PointsThe css should be between opening and closing style tags since this is in the html.
<style></style>
Also, the color specified in task 3 is green.
Philip Schultz
11,437 Points<style> h1 {color:green} </style>
<body> <h1>Parker Schultz</h1> </body>
Jason Anello
Courses Plus Student 94,610 PointsHere's a post on how to put code in the forums. https://teamtreehouse.com/forum/posting-code-to-the-forum
If you're still not passing then post all the html that is in the challenge. The forums are stripping out your html and so it's hard to know what you've actually typed in the code challenge.
Philip Schultz
11,437 Pointsthis is my first time using this. It is not letting me copy past the code to the discussion board.
Philip Schultz
11,437 Points<style>
h1 {color:blue}
</style>
<body>
<h1>Nick Pettit</h1>
</body>
Thomas Regan
2,032 PointsMaybe it wishes you to write it with the ; after the color aka blue;}
Philip Schultz
11,437 Points`<style> h1 {color:blue;} </style>
<body> <h1>Nick Pettit</h1> </body>`
Still says the same error "bummer, don't forget you style tags"
Thomas Regan
2,032 PointsHave all tags been closed above? Making sure no cascading errors occur.
Philip Schultz
11,437 Pointsthank you i got it. I tried to put the style above the body. thank you
Philip Schultz
11,437 PointsThank you everybody. I did not realize that the style tags had to be in the body.
Jason Anello
Courses Plus Student 94,610 PointsNormally they would be in the <head>
section if you had an internal stylesheet. But this challenge didn't have a head section and so we need to put it in the body.
Philip Schultz
11,437 PointsPhilip Schultz
11,437 PointsI mean i typed <style>h1 {color:blue}</style>