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 trialMicheal Noronha
457 Pointswhy is the color of the title not appearing as per my inputted color ? help please
help
<body>
<style>
hi {
color = "green";
}
<h1>micheal</h1>
</style>
</body>
8 Answers
Andy V
19,406 PointsHi Michael,
At the beginning, hi is typed accidentally, instead of h1. Your closing style comes before your header. CSS uses colons ( : ) instead of equals ( = ) and the color doesn't need "" (that's for another lesson).
<body>
<style>
h1 {color: green;}
</style>
<h1>micheal</h1>
</body>
Richard Nicholls
1,301 PointsHi, your code should look like this
<body> <style> h1 { color: green; } </style> <h1>Nick Pettit</h1>
</body>
Richard Nicholls
1,301 PointsAlso the closing style tag should be above the <h1>Micheal</h1>
Micheal Noronha
457 Pointsthanks a lot Richard
Micheal Noronha
457 Pointsthanks a lot Richard
Ariel Aronica
6,646 PointsDid you watch the video prior to the challenge?
It looks as though you have some errors and added quotation marks. "hi" should be "h1", and color = "green" should be "color: green;" with the only space being after the colon. Your h1 element should not be inside the style tag, rather, after the style tag inside of the body. The style tag should be inside of your " < head > < / head >" element.
Micheal Noronha
457 PointsYup , understood.thanks a lot u'all r awsome :D
jason chan
31,009 Pointsquotations only for classes and strings.
Micheal Noronha
457 Pointsthanks jason .