Prioritize One Style for Another

Tell us what’s happening:
Your h1 element should have the class pink-text.
Your should have a pink-text CSS class that changes the color.

Your code so far


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


}
  }
</style>
<h1>Hello World!</h1>
 <h1 class: "pink-text";></h1>

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-css/prioritize-one-style-over-another

ooh it seems like you don’t understand yet how to add classes to elements. Take a look at this: https://www.w3schools.com/html/html_classes.asp

Let me know if it helps!

That would not be correct

confused much, i did “Your h1 element should be pink”, and it was marked right. for these 2 they are my headache
1.Your h1 element should have the class pink-text.
2.Your should have a pink-text CSS class that changes the color.

read the link to understand how classes work