Hello everyone. They said my img element should have ( smaller-image) as class. can anyone help please

  **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;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>
<main>
<p class="red-text">Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>

<div>
  <p>Things cats love:</p>
  <ul>
    <li>cat nip</li>
    <li>laser pointers</li>
    <li>lasagna</li>
  </ul>
  <p>Top 3 things cats hate:</p>
  <ol>
    <li>flea treatment</li>
    <li>thunder</li>
    <li>other cats</li>
  </ol>
</div>

<form action="https://freecatphotoapp.com/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>
</form>
</main>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Edg/97.0.1072.55

Challenge: Size Your Images

Link to the challenge:

Did you look at the example in the instructions? What don’t you understand?

Before posting a topic asking for help, I suggest trying getting a hint from the exercise and it’ll take you to some answers for it. As for the test, the example for creating a CSS class is pretty explanatory, as for applying the CSS class I understand it could be tricky if you don’t follow up the instructions below accordingly which ask you that you “img” element should have the class “smaller-image”, so what should you do for this exercise:

1 - Create the CSS class withing the < style > < /style > sections and then look for the “img” element and add there the new class you just created.

2- The “img” element is the one that allows you to add the cat photo, that one starts with < img src= “(picture link here)” .

I think you should read this and the exercise and should be ready to go for this one.

Keep it up and continue this wonderful journey.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.