True Answer but

Hello. This basic CSS challenge says I have to create a class called pink-text and create a color pink. I did but it still gives me error which is " Your <style> should have a pink-text CSS class that changes the color ." What’s wrong?

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

  .pink-text {
  color: pink
  }
</style>
<body>
<h1 class="pink-text">Hello World!</h1>
</body>

make sure to use a semicolon after creating a class let me know if that helps

Add a semi-colon at the end of your CSS line.

color: pink;

2 Likes