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

Challenge task 1 of 3 in this module is not working properly...

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

I've tried just using the word style in <> and closing it with a / 1. <style>, 2. <style></style> and the above and I keep getting the Bummer! Don't forget... message.

9 Answers

Cherie Burgett
Cherie Burgett
8,711 Points

above the <h1>Nick Pettit</h1> add a style tag

Howdy. First of all, you might want to check the Markdown Cheatsheet, because there is a much cleaner way to mention your code. I'll clean it up for you. That way, you can click "Edit" and see how I did it.

Also, the colour is supposed to be green, not blue.

Challenge task 1 of 3 We’re starting out with an <h1> element and a <body> element. Add a <style> element just above the <h1>.

I would believe this challenge is in three stages. What is the challenge looking for in task 1?

It asks you to add a style element right above the <h1>, correct?

Yes, sorry, I had to re-edit my last post with markup in mind.

Yeah, so are you still having the issue?

Yup, it still isn't working or I've completely missed the mark of <style>. I reformatted the first post to try to describe all of the different attempts I've made with all being judged as wrong by code challenge.

Cherie Burgett
Cherie Burgett
8,711 Points

you're putting in more than its asking for. For question one its <style></style> only.

True. If in doubt, follow the instructions to the letter - no more, no less.

```<body>```
    ```<h1>Nick Pettit</h1>```
```</body>```

I just put this in and hit the check button.  
This is the response I received...
Bummer! Don't forget your style tag.

That looks like you made no change at all.

it looks like I made no change from which attempt????

granted, I tried to anticipate what the module would ask for as the end result and I tried to put that in as my answer first (Shame on me). The second time, I thought huh, must want me to step through pedantically. ok well let me try <style>. Still not right. Ok, maybe for my third attempt I should use <style></style> Still not accepting my answer.

Cherie Burgett
Cherie Burgett
8,711 Points

did you get it? I'd really hate for you to be stuck at this point. I've been here for about 2 weeks and have learned so much! You'll get used to how picky they code challenges can be.

ya, I feel like he said something about keeping the css apart from the html, so I was putting the css at the very top.

Cherie Burgett
Cherie Burgett
8,711 Points

Ah so you're a thinker! lol me too. I over-think everything. You'll probably love the Javascript courses. They actually require putting a little extra thought into the code challenges. Less copy what we just did and more take what we just learned and apply it to this different task.