Stuck on Prioritizing One Style Over Another

Stuck on Prioritizing One Style Over Another
0.0 0

#1

Tell us what’s happening:

Your code so far


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

</style>
<h1 class='pink-text'> 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/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


#2

You have used the ‘pink-text’ class for h2, but you have not declared the same in your <style> tag.
You need to first declare the style for class, like this
.pink-text{property: value} and then use it in html.