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

Eriselda Selimi
Eriselda Selimi
101 Points

Colors

How do you set colors in the index to Green?

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

1 Answer

Think of the <body> as the stuff that shows up on your site. Also, the computer reads from the top to the bottom. So, everything you have outside the body will not show up. Also, you have to add style before the element you want to style. It should look like this:

<body>
<style>
</style>
<h1>heading</h1>
</body>