We can add multiple class values
to an HTML element.
Let us look at an example
where we are adding multiple
class values to an HTML element
using JavaScript:
In the code above,
you can see that we are
adding multiple classes
using the add()
method.
For this, we need to simply
add the class values as
parameters in the method.
Try adding more class values
in the same method.
Remember to add the commas!