Your img element should have the class smaller-image. Your image should be 100 pixels wide

I have tried several times but i have failed to spot the issue

  **Your code so far**

<link href="#"<img class="smaller-image"" rel="stylesheet" type="text/css">
<Style> .smaller-image  {width: 100px;} 
.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 (X11; CrOS aarch64 13816.82.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.218 Safari/537.36

Challenge: Size Your Images

Link to the challenge:

Hi @monica.najjuma01 !

I would reset the lesson because there are a couple errors.

After your reset, you are supposed to add the class to the img tag not link tag.

 <a href="#"><img  ADD CLASS HERE src="" alt="A cute orange cat lying on its back."></a>

Then you need to add .smaller-image {width: 100px;} inside the existing style tags.

You are not supposed to create new style tags.

This is incorrect

Hope that helps!

it says they are both wrong, where do i put “#”><img class=“smaller-image”?

I have removed the new style tag and incorporated it in the existing one that is sorted.

your img element should have the class smaller-image .

<link href="#"><img class="smaller-image"" rel="stylesheet" type="text/css">

this is what i cannot get right.

Look very carefully at where I place the img tag.

I did not place it in the link tag like you do.

Here is where I placed mine.

 <a href="#"><img  ADD CLASS HERE src="" alt="A cute orange cat lying on its back."></a>
1 Like

The a tag is found here

Make sense?

1 Like

Thank you, its all done

1 Like

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