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 trialMUZ141128 Munyaradzi Chikavhanga
326 PointsNow write CSS that will select hl. Dont forget curly braces
write CSS that will select hl
<hl>* CSS class selector */<hl>
ā
<hl><style> </hl>
hl
</style>
ā<h1><style></h1>
<munya>
3 Answers
Codin - Codesmite
8,600 PointsThis is the correct answer to all 3 tasks:
<style>
h1{
color: green;
}
</style>
<h1>Nick Pettit</h1>
I would reccomend watching the previous video in the track again as it expliains in detail how to and why it is written this way.
https://teamtreehouse.com/library/how-to-make-a-website/beginning-html-and-css/add-style-to-the-page
Paul Ogden
7,709 PointsIt looks like you have your html elements all mixed up. You have a style tag inside of an h1 tag. If you are trying to do inline you want it to look like:
<h1 style="color: red;"></h1>
If you are trying to do it with style tags you want it to be something like:
<style>
h1 {
color: red;
}
</style>
sizwengubane
15,244 PointsHello this is the complete answer for the challenge <blockquote>
<style>
h1 {
color: green;
}
</style>
<h1>Nick Pettit</h1>
</blockquote> If this works..please mark my answer as the best answer,