Basic CSS - Prioritize One Style Over Another

My html is meant to be pink for this part of the challenge

It doesnt want to change my h1 to pink

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

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

Challenge: Basic CSS - Prioritize One Style Over Another

Link to the challenge:

It’s because you have a syntax error in your CSS. You accidentally deleted the closing curly brace on the body rule set.

Thank you.That worked.

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