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

HTML How to Make a Website Beginning HTML and CSS Write a CSS Selector and Property

Now write CSS that will select hl. Dont forget curly braces

write CSS that will select hl

index.html
<hl>* CSS class selector */<hl>
ā€‹
  <hl><style> </hl>
    hl
  </style>
ā€‹<h1><style></h1>
<munya>

3 Answers

Codin - Codesmite
Codin - Codesmite
8,600 Points

This 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

It 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>

Hello 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,