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
help?

  **Your code so far**

<link href="#"<img class="smaller-image"  https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<Style> .smaller-image  {width: 100px;} 
</style>
<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://bit.ly/fcc-relaxing-cat" 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 (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="https://bit.ly/fcc-relaxing-cat" 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" https://fonts.googleapis.com/css?family=Lobster" 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="https://bit.ly/fcc-relaxing-cat" 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.