Use a CSS Class to Style an Element@!

Tell us what’s happening: i cant get this right I even tried copping and pasting… any help guys???

Your code so far

.<h2 class="red-text">catphotoapp</h2>.

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; InfoPath.3; .NET4.0E; rv:11.0) like Gecko.

Link to the challenge:
https://www.freecodecamp.org/challenges/use-a-css-class-to-style-an-element

Hi there!

Remember to follow the feedback messages you get after submition. So far you’ve got

Your h2 element should be red.
Your h2 element should have the class red-text.
Your stylesheet should declare a red-text class and have its color set to red.

Regards


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

<h2 class="red-text">CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>