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 trialAdam Sheltz
Courses Plus Student 5,527 PointsChallenge 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
8,711 Pointsabove the <h1>Nick Pettit</h1>
add a style tag
Véronique Bellamy
20,810 PointsHowdy. 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.
Adam Sheltz
Courses Plus Student 5,527 PointsChallenge 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?
Véronique Bellamy
20,810 PointsIt asks you to add a style element right above the <h1>
, correct?
Adam Sheltz
Courses Plus Student 5,527 PointsYes, sorry, I had to re-edit my last post with markup in mind.
Véronique Bellamy
20,810 PointsYeah, so are you still having the issue?
Adam Sheltz
Courses Plus Student 5,527 PointsYup, 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
8,711 Pointsyou're putting in more than its asking for. For question one its <style></style>
only.
Véronique Bellamy
20,810 PointsTrue. If in doubt, follow the instructions to the letter - no more, no less.
Adam Sheltz
Courses Plus Student 5,527 Points```<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.
Véronique Bellamy
20,810 PointsThat looks like you made no change at all.
Adam Sheltz
Courses Plus Student 5,527 Pointsit 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
8,711 Pointsdid 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.
Adam Sheltz
Courses Plus Student 5,527 Pointsya, 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
8,711 PointsAh 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.