HTML Classes
The HTML Class Attribute is used to define equal styles and JavaScript event for elements with the same Class name.
All HTML elements with the same Class attribute will get multiple place the same style property .
Example : -
<!DOCTYPE html>
<html>
<head>
<title>HTML Classe Attribute</title>
<style> .font-color{ color: red; } </style>
</head>
<body>
<p class="font-color">HTML Class Attribute example </p>
</body>
</html>