Prioritize One Style Over Another2

Prioritize One Style Over Another2
0

#1

it is not showing the pink text

Your code so far


<style>
  body {
    background-color: black;
    font-family: monospace;
    color: green;
  }
  .pink-text {
    color: pink;
  }

</style>
<h1 class="pink-text" style="color:green"> Hello World!</h1>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-css/prioritize-one-style-over-another/


#2

You added an inline style that changed it back to green. A style applied by a class is prioritized over one added by an element style, but an inline style will be prioritized over a class style.