Size your Images need help

Tell us what’s happening:

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;
  img {
    width: 100px;
<img class=.smaller-image {width: 100px;}>

<h2 class="red-text">CatPhotoApp</h2>

<img src="" alt="A cute orange cat lying on its back. ">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299.

Link to the challenge:

Change the name of your class from:

<img class=.smaller-image {width: 100px;}>


<img class="smaller-image">

and create a new class “smaller-image” rule in your CSS.

PS: Don’t forget to put the “src” of the image.

Hope this help a little.
Happy coding!

1 Like

Classes for html tags are giving by:
For example
<h1 class="main"></h1>

Here is your code:

<img class="smaller-image" src="" alt="A cute orange cat lying on its back." style="width: 100px;">

You didn’t have to create a new img tag. You had to put 100px for img, so you have to create a style="" for that, like code above.

And you can’t put . in html classes, only in css.
Keep going! :slight_smile: