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

I've been stuck on this part for two days with no idea why :(

Can someone please, possbly tell me what I'm doing wrong?

index.html
<style>
  {element ;h1;color;green:}


</style>
<h1>Lexy Blackledge</h1>

1 Answer

David Moran
David Moran
9,617 Points

Hey Lexy,

Are you trying to make the h1 color green? If so you want to set out your style tag like so:

<style>
h1 {
  color: green;
}
</style>

Note that the element you are trying to target should be outside of the curly braces, like in the example above. Also make sure that you are using a colon to separate the property (color) from the value (green).