Where and how i put the .smaller-image

Please help please where can i put the .smaller-image in my code and how, because its now working, thanks

Your code so far

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  }
 
  h2 {
    font-family: Lobster, Monospace;
  }

  p {
    font-size: 16px;
    font-family: Monospace;
  }
    img {
    width: 100px;
  }
</style>
<h2 class="red-text">CatPhotoApp</h2>

<img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">

<p class="red-text">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>
<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.</p>

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.18 Safari/537.36.

Link to the challenge:

This is the task:

Create a class called smaller-image and use it to resize the image so that it’s only 100 pixels wide.

Lets’s break it down for simplicity.

  1. Create a class called smaller-image
    Since, we have to create a class, we have to write it between <style> tags like this
<style>
  .smaller-image {
    
  }
</style>
  1. use it to resize the image so that it’s only 100 pixels wide
    Now, we have to provide a width property in our CSS with a value of 100px like this:
<style>
  .smaller-image {
    width: 100px;
  }
</style>

We have created our CSS class and now, the only thing remaining is to apply it to the img element like this:

<img class="smaller-image" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">

This is a masterclass guide. I had spent more than 45 minutes trying to see what was wrong with my code. Fortunately, I found this the right way to call smaller-size class