I made this demo using HTML, CSS and a little JS to demonstrate the purpose of grouping selectors.
By doing this, you can easily perform various actions with a smaller amount of code.
Another color is going to be added to this paragraph. Click on the button below and see by yourself.