Override Class Declarations with Inline Styles/h1 element should be white

Override Class Declarations with Inline Styles/h1 element should be white
0

#1

Tell us what’s happening:
My h1 element isn’t white

Your code so far

<style>
  body {
    background-color: black;
    font-family: Monospace;
    color: green;
  }
  #orange-text {
    color: orange;
  }
  .pink-text {
    color: pink;
  }
  .blue-text {
    color: blue;
  }
</style>
<h1 id="orange-text" class="pink-text blue-text">Hello World!</h1>
<h1 style="color: green">```
**Your browser information:**

Your Browser User Agent is: ```Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/60.0.3112.78 Chrome/60.0.3112.78 Safari/537.36```.

**Link to the challenge:**
https://www.freecodecamp.org/challenges/override-class-declarations-with-inline-styles

#2

Where are you setting it to white?


#3

I figured it out had to play around with the code a lil. Thx Ariel :slight_smile:


#4

@ayoskip, I am getting the same error and have tried moving some of the code around as well, how did you solve this challenge? I have been soaring thru the challenges but this one has me stumped! Anyone else can chime in too, please. Thank you in advance.


#5

Show us your code @trap1 and we can see where you got stuck more clearly.


#6

That’s the best way to figure something out. :smiley:


#7

i am getting same error,how to solve it.help me


#8

it is asking for you to style your h1 when you declare it:

<h1 style="color: [INSERT COLOR]">

this will override the css styling, but make it harder to change later.