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

Jonavan Helom
Jonavan Helom
2,593 Points

I don't get the first part of the challenge, do you want me type in a new style or CSS?

where do I write the CSS at?

index.html
<style>

  H1 {CSS
  color: Green;
  }


</style>
<h1>Jon</h1>

1 Answer

andren
andren
28,558 Points

You are meant to write it within the <style> tags, just like you are doing.

The issue with your solution is not the placement of the CSS, but rather that there are two issues with your CSS code:

  1. case matters when writing selectors. You select the h1 element by typing h1, not H1.

  2. The Word "CSS" does not belong within your h1 rule.

If you fix those two issues like this:

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

<h1>Jon</h1>

Then your code will work. It's also worth mentioning that the challenge never asked you to change the name found within the h1 tag. Doing so won't cause an issue in this specific challenge, but you should in general never change any code you are not asked to change. Doing so will often break the challenge.