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

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

  body {
    background-color: black;
    font-family: Monospace;
    color: green;}
    .pink-text{color: pink;}
<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:


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