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 trialCosmin Iuga
2,352 PointsI wrote this correctly. It styled it the way it was supposed to but somehow I can't move forward. Can you help?
I wrote this correctly. It styled it the way it was supposed to but somehow I can't move forward. Can you help?
<style>
h1 {
color: blue;
}
</style>
<body>
<h1>Nick Pettit</h1>
</body>
13 Answers
tuukka uosukainen
22,107 PointsNot sure but, it may be because you don't have head tags?
Try this:
<head>
<style>
h1 {
color: blue;
}
</style>
</head>
<body>
<h1>Nick Pettit</h1>
</body>
Hope this helps!
Cosmin Iuga
2,352 PointsInteresting... why do I need a head?
tuukka uosukainen
22,107 PointsDid it work?
Cosmin Iuga
2,352 PointsIt did not work... I did not think I had to specify the style weather it was in the head or not.
Cosmin Iuga
2,352 PointsI also have it written this way and it works outside of the Treehouse system...
<style>
h1 { color: blue; }
h2 {color: green;}
</style>
<h1>Cosmin</> <h2>Iuga</>
tuukka uosukainen
22,107 PointsCan you post all of your code?
tuukka uosukainen
22,107 PointsAnd what error does the code challenge give you?
Cosmin Iuga
2,352 Points<style>
h1 { color: blue; }
h2 {color: green;}
</style>
<h1>Cosminel</> <h2>Iugamorisca</>
Cosmin Iuga
2,352 Pointsit just says bummer... Don't forget your style...
tuukka uosukainen
22,107 PointsCan you post a link to the challenge?
Cosmin Iuga
2,352 PointsSorry... Not familiar with the " challenge"...
tuukka uosukainen
22,107 PointsThe one which you can't pass?
Cosmin Iuga
2,352 PointsLet me see if I can find it...