className is a class attribute use to identify groups of elements that share a similar characteristic or property. Other attributes selectors are class and elem.class; class is an attribute selector use to assign the same style to multiple elements that belong to the same class while elem.class is used to specify exactly which kinds of elements within that class receive the style rule.