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 trialLeland Jung
3,336 PointsI modified the code like the video, but the heading is still black.
When I hit the preview button, the heading, "Nick Petit", is still black. Here's my code for index.html in my workspace:
<style>
h1 {
color: blue;
}
</style>
<h1>Nick Pettit</h1>
3 Answers
Ted Sumner
Courses Plus Student 17,967 PointsIt also occurred to me that you did not enclose the h1 tag with the body tag. I will take the challenge and post passing code.
Ted Sumner
Courses Plus Student 17,967 PointsHere is the passing challenge code:
<body>
<style>
h1 {
color: green;
}
</style>
<h1>Nick Pettit</h1>
</body>
If this is from the code challenge, the problem is that you made the color blue, not green.
Ted Sumner
Courses Plus Student 17,967 PointsSaving changes was my thought also. I don't see anything wrong with the code.
Samuel Manas
796 PointsIf saving doesn't work, show us a bigger snapshot just so we can double-check everything! :)
Leland Jung
3,336 PointsThanks, I added the <body> tag and it worked!
Samuel Manas
796 PointsSamuel Manas
796 PointsDid you save your changes?