Completed the lesson but in the wrong way?

Tell us what’s happening:
So when I do what the lesson tells me to do creating a css class and assigning it to the h1 element the h1 stays green, but for some reason the lesson wants the text to be pink? I just changed the body element to pink but im pretty sure that was not what they were asking?

  **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 (X11; CrOS x86_64 14388.61.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.107 Safari/537.36

Challenge: Prioritize One Style Over Another

Link to the challenge:

You enclosed the pink-text class within the body style. You missed the closing braces of body{}.
Close the body{} style first and then write . pink-text{} outside the body{} selector.

1 Like

ohhh thanks for the help!!!

1 Like