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

How am I suppose to write CSS that will select h1?

It says ''bummer! Make sure you put curly braces'', but I don't understand where in the code im supposed ton put this.

3 Answers

Lorenzo Pieri
Lorenzo Pieri
19,772 Points

Well, it goes like this:

h1 {  

   Property :  Property Value; 
}

Dont forget to open \ close the curly braces { } each time you work with a different declaration

well it depends on what your h1 is inside of, if its inside your body you would type

body h1 { "code goes here" }

Hey,

Its difficult to comment without seeing your code, but I guess its referring to there { }

They should be somewhere like this:

<body>
  <style>
    h1 {
      color: red;
    }
  </style>
    <h1>Nick Pettit</h1>
</body>

=)