Prioritize One Style Over Another - incorrect code in solution?

Tell us what’s happening:

Isn’t the solution incorrect? In the solution the style color is set to pink, shouldn’t it be green to show that that classes to individual elements take priority over general styles - that being the point of the lesson?

Also, ‘Run tests’ will not complete; what is wrong with my code?

Here is the solution: freeCodeCamp Challenge Guide: Prioritize One Style Over Another

Your code so far

<style>
  body {
    background-color: black;
    font-family: Monospace;
    color: green;
  .pink-text{color: pink;}
  }
</style>
<h1 class="pink-text"> Hello World!</h1>

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0.

Link to the challenge:
https://www.freecodecamp.org/challenges/prioritize-one-style-over-another

You need to close your body selector by “}”

1 Like

Thank you. Can you check the solution given also. In the solution - the body and class colors are both pink. Shouldn’t the body color be green and the class pink? freeCodeCamp Challenge Guide: Prioritize One Style Over Another