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

Selecting the <h1> to add style. I forgot where to add the curly brackets to select it.

Selecting the <h1> to add style. I forgot where to add the curly brackets to select it.

<style></style> {<h1>Nick Pettit</h1>}

index.html
<style></style>
{<h1>Nick Pettit</h1>}

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

You add your css style inside the style brackets. Just type h1 to select it. See the below code:

<style>
    h1 {

}
</style>

Then add your style rules inside the curly braces there. Font size or color or whatever you need.

Gianmarco Mazzoran
Gianmarco Mazzoran
22,076 Points

Hi,

you need an element selector, in this case h1 selector. And since you're going to style them you need to put your code inside the style tag.

<style>
  h1 {

  }
</style>
<h1>Nick Pettit</h1>

Here's a quick reference that might help you understand the element selector