Basic CSS - Prioritize One Style Over Another

Hi Everyone when i run the test the first 2/3 pass except the last one h1 element should be pink. I hope that the code is right and probably just missed something simple like putting semi colon at the end, but can’t seem to find out what i am missing. thanks

<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:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.33

Challenge: Basic CSS - Prioritize One Style Over Another

Link to the challenge:

hello,

make sure that your selectors all start and end with curly braces.
{
}

(you are missing one)

Thanks after adding one in the middle to help separate it it worked

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