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

Krishnendu Banerjee
Krishnendu Banerjee
1,005 Points

Can't Find out where i have gone wrong

Sir I cannot makeout that where i have done wrong in the index.html. I have done it just like that the teacher said. Please help me. Thanke You,

index.html
<style>

  h1 {
    color: red;

   }
</style>
<body>
    <h1>KRISHNENDU BANERJEE</h1>
</body>

1 Answer

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

Please mark this as "Answered" if you find it helpful. Thanks!

Krishnendu Banerjee
Krishnendu Banerjee
1,005 Points

sir they are telling that don't forget your style tag. what should I do. Please Help,

Hi Krishnendu, I was getting this error as well until I put the style tag inside the body exactly as shown above. Once I put the style tag in the body just above the h1 tag, my code passed successfully. Try clearing out everything and starting the code from scratch.