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!

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

Help with Basic stuff!

I just started with almost zero coding experience. I am on the HTML track and have coded the style tag and it works in preview but for some reason is not approving it.

<style>

 h1 { color: blue;

} </style> <h1>Nick Pettit</h1>

it keeps saying, "Bummer! Don't forget your style tag."

what am I doing wrong?

7 Answers

For some of the tags in HTML but not all of them should get closed with forward slash for example: If you have the <textarea> tag probably you have to close the tag by </textarea>. That is the basic concept.

This is the solution for the problem:

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

Tell me if it works fine with you.
mrx3
mrx3
8,742 Points
<style>
  h1 {
    color: blue;
</style>
mrx3
mrx3
8,742 Points

Try the above exactly as it's written. Hope this helps.

Still saying, "Bummer! Don't forget your style tag."

Jake , i just started myself and make sure spacing is correct. i had the same issue and that resolved the problem... Trust me once you get going you wont want to stop...

mrx3
mrx3
8,742 Points
<body>
    <style>
      h1 {
        color: green;
      }
    </style>
     <h1>Nick Pettit</h1>
</body>
mrx3
mrx3
8,742 Points

I did the question and got it to pass. It's just like the above, and it's supposed to be green.

still saying "Bummer! Don't forget your style tag." i have tried spacing, copying and pasting, evrrything

mrx3
mrx3
8,742 Points

I'm not sure what's wrong then. Sorry Jake.

Which application you are using to code your page?