Doubt in CSS Class to Style an Element

Doubt in CSS Class to Style an Element
0.0 0

#1

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.


#2

We would need to see all of your code to make sure everything is correct. You can simply edit the original post and paste all the code into it. You will noticed I added three backtick marks on the line before and after your code. Leave those in there so the code formats correctly on the forum.