Html classes img that has a class already and i want to addd another

how do you add an img class to img class i already have a class in the img
<img class=“smaller-image”“thick-green-border” src=“” alt="A cute orange cat lying on its back. ">this is what i did and adding a comma doesnt help

The challenge Add Borders Around Your Elements describes how to apply multiple classes to one element.

1 Like

use the another class in the same class like this you can use the multiple classse in same class.

<img src="somthing.jpg" alt="this_image" class="smaller-image img-circled img-fluid"
1 Like

To add more than one class to an element, just separate the class names with a space. For example, I added two classes classes to your image below…

<img class=“smaller-image thick-green-border” src=’//’ alt=“A cute orange cat lying on its back.” />

A cute orange cat lying on its back.

Try it to make sure it works. Hope that helps :slight_smile:

Do you have a question?