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

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,009 Points

quotations only for classes and strings.

thanks jason .