Add the img element to use the class "smaller-image

Tell us what’s happening:
Describe your issue in detail here.
The omg element should have the class “smaller-image”
Not getting that

  **Your code so far**

.smaller-image {
  width: 100px;
<img class:"smaller-image"></img>

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

h2 {
  font-family: Lobster, monospace;

p {
  font-size: 16px;
  font-family: monospace;

<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."></a>

  <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="">
  <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 (Linux; Android 10; CPH2185) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.104 Mobile Safari/537.36

Challenge: Size Your Images

Link to the challenge:

Hello @Abiola

When assigning a class to a HTML element, use the = sign and not :

You are required to give the img element a class of small-image like below:

You cannot have this inside a style tag. Inside the style tag you write the styles (CSS) for your HTML elements by referencing them in various ways. For example, here you reference the img using its class name to style it inside the tags:

.small-image {
width: 100px;

I’ve corrected that but it’s still not correct

The class is smaller-image Please correct that.

I’ve corrected it and it’s still the same🥺

Please share your code. What test is not passing? What is the message printed on the console when you run the tests?

I already did the other one “the image should be 100px wide”
It’s the first one “the image element should have the class smaller-image” that’s the message

Ok. Here are the possible areas you might be missing something:

The img element should have a class=“smaller-image” .

In your style you should have this:

.smaller-image {
width: 100px

Oh, I see your issue. You are not required to create another img element. You should give the existing img the class="smaller-image"

The one on line 24.

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