Use Hex Code to Mix Colors - Help!

Use Hex Code to Mix Colors - Help!
0.0 0

#1

Please see the two steps it keeps failing my test for below and help me figure out what I am doing wrong in the code. I figured it is asking me to make the “I am green!” h1 element the color green, using in-line override method. Thanks again for your help!

***Give your h1 element with the text I am green! the color green.
***Use the hex code for the color green instead of the word green.

Your code so far

<style>
  .red-text {
    color: #FF0000;
  }
  .green-text {
    color: #00A500;
  }
  .dodger-blue-text {
    color: #2998E4;
  }
  .orange-text {
    color: #FFA500;
  }
</style>

<h1 style="color:#00A500" class="red-text">I am red!</h1>

<h1 class="green-text">I am green!</h1>

<h1 class="dodger-blue-text">I am dodger blue!</h1>

<h1 class="orange-text">I am orange!</h1>

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36.

Link to the challenge:


#2

Since the color of the text is defined in the style section, you don’t need to add it to the element itself. Your header text should look something like this:

<h1 class="red-text">Now I will be red!</h1>

#3

Thank you so much Perry! I was using the wrong hexcode and your response helped me notice that. It’s usually the smaller stuff. Thanks again!