Basic CSS: Prioritize One Style Over Another

Basic CSS: Prioritize One Style Over Another
0

I can’t get pass this challenge, everyone seems fine to me. What am I missing here?!?

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

  .pink-text{
    color: pink;
  }
</style>
<h1 class:"pink-text">Hello World!</h1>
 class:"pink-text"

Re-read the instructions and look carefully at how a class should be assigned to an element.

1 Like

got it fixed now! its suppose to be class= instead of a colon haha

:+1: Good job. Happy coding.

Mine is written well, don’t know what’s wrong

You have nested the .pink-text selector inside the body selector. They should be to separate selectors.

Also, please post code and not screenshots.