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=“https://bit.ly/fcc-relaxing-cat” 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=’//cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/freecodecamp/original/3X/6/1/61a3499c5abb165be990aa0c1abd23342e60c663.jpg’ 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?