CSS basic- Prioritize one style over another

Hello, I do not understand why these elements are not validated.

  • Your h1 element must include the pink-text class.
  • Expectation: You should have a pink-text CSS class that modifies your color.
<style>
  body {
    background-color: black;
    font-family: monospace;
    color: green;
  }

    .pink-test{
    color: pink;
  }
  
</style>
<h1 class='pink-test'>Hello World!</h1>

The user agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36

Challenge: Basic CSS: favor one style over another

Link to defiance:

pink-text not pink-test

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.