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!
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 trial
Jake Dockter
101 PointsHelp with Basic stuff!
I just started with almost zero coding experience. I am on the HTML track and have coded the style tag and it works in preview but for some reason is not approving it.
<style>
h1 { color: blue;
} </style> <h1>Nick Pettit</h1>
it keeps saying, "Bummer! Don't forget your style tag."
what am I doing wrong?
7 Answers

Dustin Scott
Courses Plus Student 7,819 PointsFor some of the tags in HTML but not all of them should get closed with forward slash for example: If you have the <textarea> tag probably you have to close the tag by </textarea>. That is the basic concept.
This is the solution for the problem:
<style>
h1{
color: blue;
}
</style>
Tell me if it works fine with you.

mrx3
8,742 Points<style>
h1 {
color: blue;
</style>

mrx3
8,742 PointsTry the above exactly as it's written. Hope this helps.

Jake Dockter
101 PointsStill saying, "Bummer! Don't forget your style tag."

Ricky Diaz
Courses Plus Student 171 PointsJake , i just started myself and make sure spacing is correct. i had the same issue and that resolved the problem... Trust me once you get going you wont want to stop...

mrx3
8,742 Points<body>
<style>
h1 {
color: green;
}
</style>
<h1>Nick Pettit</h1>
</body>

mrx3
8,742 PointsI did the question and got it to pass. It's just like the above, and it's supposed to be green.

Jake Dockter
101 Pointsstill saying "Bummer! Don't forget your style tag." i have tried spacing, copying and pasting, evrrything

mrx3
8,742 PointsI'm not sure what's wrong then. Sorry Jake.

Rajesh Chauhan
Courses Plus Student 30 PointsWhich application you are using to code your page?