Override Class Declarations by Styling ID Attributes whats wrong here

Override Class Declarations by Styling ID Attributes whats wrong here
0

#1

Tell us what’s happening:
I cant seem to figure out whats wrong with this code. My text is orange how can I fix the code?

Your code so far

<style>
  body {
    background-color: black;
    font-family: Monospace;
    color: green;
  }
  .pink-text {
    color: pink;
  }
  .blue-text {
    color: blue;
  }
  #orange-text {
    color: orange;
  }
</style>
<h1 class="pink-text blue-text"><h1 id="orange-text">Hello World!</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/64.0.3282.167 Safari/537.36.

Link to the challenge:


#2

You should not be creating a new h1 element. Use the existing one and give it the applicable id.


#3

thanks for the quick reply, yeah so h1 id="orange-text goes right after no need for the whole other <h1. I appreciate the direction have a good night.