Stuck in a challenge

<style>
  .red-text {
    color: red;
  }
  <p1 { 
    font-size: 16px;
  }
    p2 {
      font-size: 16px;
  }
</style>

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

<p class="red-text"> Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.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>

<p2 class="red-text"> dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff. </p2>

keeps telling me i need to create to p elements with imsum text use closing tags and put in font between style so what am i doing wrong

I guess you need to take out the 1,2 from P so your style works well

  <style>
.red-text {
color: red;
}
<p { 
font-size: 16px;
}
</style>

I cleaned up your code.
You need to use triple backticks to post code to the forum.
See this post for details.

Hello there, You need to use only p not p1 or p2. plus some typo with <p1.

<style>
  .red-text {
    color: red;
  }
  <p1 { 
    font-size: 16px;
  }
    p2 {
      font-size: 16px;
  }
</style>

It should work fine.

<style>
  .red-text {
    color: red;
  }
  p { 
    font-size: 16px;
  }
</style>

Happy Coding! :slight_smile: