0

[DUPLICATE] Why we are using class in html

3rd Mar 2018, 9:24 AM
Sushmita Sen Sharma
Sushmita Sen Sharma - avatar
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/
3rd Mar 2018, 9:31 AM
Akash Pal
Akash Pal - avatar