css class or html class:
Class in html and css is a selector. We can define style rules based on the class attribute of the elements. All the elements having that class will be formatted according to there rules. I can put an example here for more details.
<!DOCTYPE html>
<html>
<head>
 <title>Html Class</title>
 <style type="">
  .red{
   text-align: center;
   color: green;
  }
  .center{
   text-align: center;
   color: red;
  }
 </style>
</head>
<body>
<h1 class="red">My class</h1>
<p class="red">This is my paragraph tag</p>
<h1 class="center">another heading</h1>
<p class="center">this is another paragraph</p>
</body>
</html>
                                                                           ⇊⇊
here i use some classes for attributes we can give many names of classes in our projects we can use many classes and id's in our web projects

 


 
 
