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 trialDavid Marsh
189 Pointshow do i do this step in css?
how do i?
<body>
<style>
h1 {color:"green"}
</style>
<h1>Nick Pettit</h1>
</body>
3 Answers
Craig Watson
27,930 PointsHi David,
the style tags you posted should look like this:
<style>
h1 {
color: green;
}
</style>
Hope this helps :)
Nejc Vukovic
Full Stack JavaScript Techdegree Graduate 51,574 PointsHi David.
You forgot the semi-colon:
<body>
<style>h1{ color: green;}</style>
<h1>Nick Pettit</h1>
</body>
Just for info: every CSS statement - line ends with a semi-colon ";" .
Happy Coding!!!
nWEBd
Ben Myhre
28,726 PointsAs stated by the others, don't forget the semicolon.
Also, as a good practice, I would be diligent about maintaining appropriate spacing and formatting. You have:
<style>h1{ color: green;}</style>
and I would recommend to get in the habit of something like
<style>
h1 {
color: green;
}
</style>
It will make your code more readable for your future you or others looking at it.