Stuck in a challenge

Stuck in a challenge
0

#1
<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


#2

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>

#3

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


#4

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: