The class attribute assigns one or more class names to an element. (It is used to apply styles to elements.)
This attribute can be used in most elements.
Attribute |
Value |
Explanation |
class=" " |
class name |
arbitrary name |
Two or more elements can have the same class name.
Example