Prioritize One Style Over Another, I think I know why?

Prioritize One Style Over Another, I think I know why?
0

#1

Tell us what’s happening:
h1 heading should turn pink but it is not. I think it could have something to do with how I closed my body style but I’m not sure that that closing tag should be???

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:

Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7.

Link to the challenge:


#2

Hello,

You do not need the . in the class attribute. It should be class="pink-text".