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 trialEser SAHIN
4,657 PointsWhat is the problem?
<html>
<head>
<style>
h1
{
color: blue;
}
</style>
</head>
<body>
<h1>Eser SAHIN</h1>
</body>
</html>
Hello, When i wrote the above code and then click to preview button, everything is ok but when i click the recheck work button and get this message
"Bummer! Don't forget your style tag."
I didn't understand, where is the problem?
Thank you :)
4 Answers
qybjpwnice
2,994 PointsThe code I typed goes inside the body tags. Before the h1 tag.
<body>
<style>
h1 {
color: blue;
}
</style>
<h1>Eser SAHIN</h1>
</body>
That code should fix it.
qybjpwnice
2,994 PointsDid you put that code inside of style tags?
It should look like this:
<style>
h1 {
color: blue;
}
</style>
Eser SAHIN
4,657 Points<style>
h1 {
color: blue;
}
</style>
<body>
<h1>Eser SAHIN</h1>
</body>
Applying this form and do the same error message : Bummer! Don't forget your style tag.
Eser SAHIN
4,657 PointsI thought it should be (style tag out of the body element) like that.
Thank you Fidel :)