When and why use the class attribute?

The class attribute classifies elements into conceptual groups; therefore, a class name may be shared by multiple elements. We should use the class attribute to classify.