+ 1

What is this class in css?

9th Dec 2016, 9:30 AM
Jithin Sathianandan
Jithin Sathianandan - avatar
3 Answers
+ 2
class has many use in style one of the main one is you will not have write styles again and again just make a class and put all elements with same role as of that class and the styles will be applied
9th Dec 2016, 10:00 AM
Sandeep Chatterjee
+ 2
it is a selector,which generally select a group of elements(tags) for eg. <div class="one"> <P> Play</P> <P> the</P> <P> game</P> </div> now if in CSS <style> .one { font-weight:bold; } </style> Then all the elements(P tags) in div will have Bold texts. I hope I am clear.
12th Dec 2016, 11:30 AM
Arnab Ghosh
Arnab Ghosh - avatar
+ 1
parent element! you dont have to repeat things again and again to , just it will inherit by default
12th Dec 2016, 7:54 AM
Archon Spirit
Archon Spirit - avatar