Doubt in CSS Class to Style an Element

Tell us what’s happening:

Guys I am stick with one error though my code is correct. here is my code and error.

Code:

<style>
   .red-text {color: red}
  </style>

Error:
Your stylesheet should declare a red-text class and have its color set to red.