CSS GROUPING

Grouping Selectors

If multiple items have the same definition of CSS styles, then we can group by commas, so use a single CSS definition for everyone.

Example

h1 {color: blue;} h2 {color: blue;} h3 {color: blue;}

Can be grouped as follows:

h1, h2, h3 {color: blue;}