Need hepl in Prioritize One Style Over Another code

why I am not passing in this… Is there any mistake in this code??

Your code so far


<style>
body {
  background-color: black;
  font-family: monospace;
  color: green;
  }
  .pink-test{color:pink;}

</style>
<h1 class="pink-test">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/80.0.3987.162 Safari/537.36.

Challenge: Prioritize One Style Over Another

Link to the challenge:

Welcome, mohitkd.

The instructions say:

Create a CSS class called pink-text

Now have a careful look at what you have written…

Hope this helps

1 Like

but i already created a class!!!

I realise that. You have a typo in your code. Read carefully.

I am not getting it please tell me where is the mistake!!

ohh i got it… lol

the typo was the period before pink-text right🤔

@flamey, short answer, no. A period is for a class, the pound sign is for an id.
Since the OP has found and corrected the problem the typo was that they had ‘pink-test’ while the lesson said to use ‘pink-text’

2 Likes