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

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

don't understand

don't understand

index.html
<style>
  h1 {
    color:green;
  }
  <h1> nitin valvi </h1>
</style>

2 Answers

Hi, This is just a small error. You have put your H1 tags inside the style tags which are meant for css. Try something like this:

<!DOCTYPE html>
<html>
<head>
<style>
  h1 {
    color:green;
  }
</style>
</head>
<body>
  <h1> Nitin Valvi </h1>
</body>
</html>

I hope this works for you. Cheers

Bryce Santos
Bryce Santos
11,157 Points

You have your h1 tags in the style tags. Try this instead:

<head>
<style>
  h1 {
    color:green;
  }
</style>
</head>

<h1> nitin valvi </h1>

edit: style tags need to go inside head tags, d'oh!

Hi, Bryce Santos. I think you forgot to put the body tags around your H1 tags and then close the page with </html> :) Cheers.

Bryce Santos
Bryce Santos
11,157 Points

Yeah, I should have written out the code completely and correctly when I edited the post. Your post works better :D