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 trial
Tapan Nepal
3,298 PointsThe color tag isn't working
<style> h1 { color: blue; } </style> <h1>Nick Pettit</h1>
when I typed that up into my work space it didn't work.
3 Answers
akak
29,446 PointsYou have to put this inside <style></style>
<style>
h1 {
color: blue;
}
</style>
<h1>Nick Pettit</h1>
Hannah Gaskins
14,572 PointsHey Tapan,
As Akak says previously, if you are working with your HTML doc, you will need to wrap your styles within a style tag. This tells the doc that that section is CSS.
Does that make sense?
Let us know, and we would be happy to continue the conversation :)
Andrew Smirnov
4,982 PointsNepal, there is no <style> tag in your code, thas why it doesnt work. you have to copy akak's code. Rate me, if it was helpful, thanx!
Tapan Nepal
3,298 PointsTapan Nepal
3,298 PointsI do have it under style but idk why it isn't showing that here. <style> h1 { color: blue; } </style> <h1>Nick Pettit</h1>
I copied this off the quiz i had to take where it said it was right but when i paste it into my work space it still won't work..