Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

why is the color of the title not appearing as per my inputted color ? help please

help

index.html
<body>
  <style> 
    hi {

  color = "green";

    }
 <h1>micheal</h1>
    </style>
</body>

8 Answers

Hi Michael,

At the beginning, hi is typed accidentally, instead of h1. Your closing style comes before your header. CSS uses colons ( : ) instead of equals ( = ) and the color doesn't need "" (that's for another lesson).

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

Hi, your code should look like this

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

</body>

Also the closing style tag should be above the <h1>Micheal</h1>

thanks a lot Richard

thanks a lot Richard

Ariel Aronica
Ariel Aronica
6,646 Points

Did you watch the video prior to the challenge?

It looks as though you have some errors and added quotation marks. "hi" should be "h1", and color = "green" should be "color: green;" with the only space being after the colon. Your h1 element should not be inside the style tag, rather, after the style tag inside of the body. The style tag should be inside of your " < head > < / head >" element.

Yup , understood.thanks a lot u'all r awsome :D

jason chan
jason chan
31,008 Points

quotations only for classes and strings.

thanks jason .