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

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

Hi, i don't understand very well what you are asking me to do with "write CSS that will select the h1." Thanks

write CSS that will select the h1.

I am writing <select> h1 </select>

How should it be?

index.html
<body>
    <h1>Nick Pettit</h1>
    <style> italic </style>
  <select> h1 </select>
</body>

3 Answers

Micheal Emerson
Micheal Emerson
8,207 Points

In your css file write:

h1

This will target the h1 element to be styled.

Ariel Vainer
Ariel Vainer
7,042 Points

Hi, You need to write before your h1 element: < style> h1{ } </ style>

thanks!