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

\\help me to find out the error <style> h1 { color: orange; } </style> <h1>Gouled</h1>

i can find the error in this code so hepl me to found out

index.html
  <style>
    h1 {
        color: orange;
    }
  </style>
    <h1>Gouled</h1>
Tony Nguyen
Tony Nguyen
24,934 Points

Are you sure you put the correct color? I had to put in Green for mines.

3 Answers

Joren Paridaens
Joren Paridaens
1,602 Points

@Abraham Swaray is right, the code should be as follows:

<body>
  <style>
    h1 {
      color: green;
    }
  </style>
    <h1>Ghouled</h1>
</body>

I believe you should add some html, body, and head tags along the way. Something like this.

<html>
<head>
<style>
h1 {
        color: orange;
    }
</style>
</head>
<body>
<h1>Ghouled</h1>
</body>
</html>
Abe Layee
Abe Layee
8,378 Points

You have to set the color to green not orange.