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

Satbir Singh
Satbir Singh
1,674 Points

Bummer! Don't forget your style tag

I think my coding is quite right... but why this error is still here

index.html
<!DOCTYPE html>
<html>
  <head>
  <title>My first day at Treehouse</title>

  <style>
    h1 {color:blue}
  </style>

  </head>

  <body>
    <h1>Nick Pettit</h1>
</body>
</html>

5 Answers

Hi Satbir,

The challenge is only asking for you to add the style within the body tags:

We're starting out with an <h1> element and a <body> element. Add a <style> element just above the <h1>.

It also asks for the color to be 'green' rather than 'blue':

Nice! Finally, set the color of the h1 element to green.

So if you move the style tags inside the body tags just above the h1 and remove any other code that should sort it.

Hope that helps.

-Rich

h1 {color:blue;} notice the semicolon

Satbir Singh
Satbir Singh
1,674 Points

the error is still there

<style type="text/css">
   h1 {color:blue;}
</style>

Sorry didn't write this before. Been a bit busy @ work and just replied quickly:D

No problem. Happy to help :)