CSS, HTML Syntax a problem in styling?

Tell us what’s happening:

Where is the mistake? In h2 class=“red-text”;>CatPhotoApp or, in .red-text {
color: red;
} ?

MyCatApp does not turn red.

Diana

Your code so far

<style>
  h2 
    .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>

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0.1 Safari/604.3.5.

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

Probably the random ; in your h2 element.