Creating Classes for HTML Elements
with the Class Attribute
The class attribute is a Global Attribute.
You can define a class for any web page element that accepts global attributes.
Since the id attribute must be unique and only used once on a page, the class attribute is the preferred method of defining custom properties for HTML elements.