0
[DUPLICATE] Why we are using class in html
2 Answers
+ 3
Class is an attribute which is used to specify the class of an element. Class can be used in many elements. You can give styling to an element by its class name in css.
For Example:-
<div class="dr"></div>
In css :-
.dr {
height:50px;
Color:black;
}
The div element will have the following properties by its class name. You can give this property to many more elements too.
In the css tutorial, you will know what the class means here the link of it.
https://www.sololearn.com/learn/CSS/1080/