| What is grouping in CSS3 and how to use that?
We can say that grouping in CSS is used to reduce code redudancy or we can say Grouping in CSS3 is an example of reusability when we have to apply same style on multiple elements in HTML. Here by using only a single declartion statement we can use that for multiple control or tags of HTML. For example we will have to apply same font size and color to different headings we use this grouping. We will below take example of both grouping and non-grouping example.
(1)Non Grouping Example:- In below example we have create a CSS for h1,h2,h3 differently and all the values are same.
(2)Grouping Example:- Here in single line we have apply css to all h1,h2,h3
| | |