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 trialmonicabee
540 PointsWhy does it say "don't forget style tag" it's correct in preview?
I did as the video explained and it worked in the preview but the screen keeps saying "Bummer, don't forget style tag".
<style>
h1 {
color: blue;
}
</style>
<h1>Nick Pettit</h1>
4 Answers
Emma Willmann
Treehouse Project ReviewerIn your code, you don't show the body tags. Did you remove those? The challenge won't work without them.
<body>
<style></style>
<h1>Nick Pettit</h1>
</body>
colingallagher
9,743 PointsI was able to pass the challenge with your provided HTML. I would re-load the challenge and try again.
monicabee
540 PointsThank you Emma and Colin - yes I deleted the body tags as I don't remember it being covered in my sample on my Workspaces and so I took it off. Fortunately I regained my wits and did as Colin had said and went back to the beginning, and put the style tags between the body tags. For some reason I don't know if the video mentioned the body tags so I got confused. Thanks for your time.
Emma Willmann
Treehouse Project ReviewerGlad it worked. It's usually best to keep the code they give you and add to it. I can't think of any challenge that they've had me delete anything on the first task. There are some where they have you add something, then delete it or change it on the 2nd time. :-)
monicabee
540 PointsThanks Emma, that's a good tip.