Need Help With The "Size Your Images" Exercise

Tell us what’s happening:
Hi! I’m trying to complete a task in Free Code Camp. I have to “create a class called smaller-image and use it to resize the image so that it’s only 100 pixels wide.”

I tried to edit the code, but the two corrrections I need to make just say “Your img element should have the class smaller-image” and “your image should be 100 pixels wide. Browser zoom should be at 100%.”

Can anyone help me fix my code for this task? Thanks!

Your code so far

<link href="" rel="stylesheet" type="text/css">
  .red-text {
    color: red;

  h2 {
    font-family: Lobster, monospace;

  p {
    font-size: 16px;
    font-family: monospace;
  .smaller-image {
    width; 100px;
<h2 class="red-text">CatPhotoApp</h2>
  <p class="red-text">Click here to view more <a href="#">cat photos</a>.</p>
  <a href="#">
    <img src="" alt="A cute orange cat lying on its back.">
    <p>Things cats love:</p>
      <li>cat nip</li>
      <li>laser pointers</li>
    <p>Top 3 things cats hate:</p>
      <li>flea treatment</li>
      <li>other cats</li>
  <form action="/submit-cat-photo">
    <label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
    <label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
    <label><input type="checkbox" name="personality" checked> Loving</label>
    <label><input type="checkbox" name="personality"> Lazy</label>
    <label><input type="checkbox" name="personality"> Energetic</label><br>
    <input type="text" placeholder="cat photo URL" required>
    <button type="submit">Submit</button>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15.

Link to the challenge:

You meant to have colon instead of semicolon I assume :wink:

and don’t forget to apply this class to the img.

Oops! I fixed the semicolon into a colon. But I still don’t get how to apply the class to the img? Could you tell me where the class is supposed to go?

It’s supposed to go inside this img.

I still didn’t quite understand, but I’ve just finally found a visual tutorial on YouTube and I was able to pass the lesson. Thank you very much for your help!