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

Bianca Bryan
Bianca Bryan
288 Points

Web design task 2 of 3

Writing CSS that will select the h1. In the video we learnt html, I am not totally sure about how to write css.

index.html
<body>
  <style>
    h1 {
      color: blue;
    }
  </style>  
  <h1>Nick Pettit</h1>
</body>

2 Answers

Alan Bares
Alan Bares
2,312 Points

I just checked and your code does work to pass that task. About the only thing that's wrong is making your h1 blue. The final task says to make it green.

Bianca Bryan
Bianca Bryan
288 Points

Thanks for your answer. Yes, I figured that out as I went back to the video. Thanks.