HTML Classes

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

Using The class Attribute

The HTML class attribute makes it possible to define equal styles for elements with the same class name.

Here we have three <div> elements that point to the same class name:

 

Example