CSS Group Selector

If we want to apply same styling to multiple selectors then they can be declared together. This is called “grouping”.Just separate the selectors with a comma.



For example, if <h1>, <h2>, and <h3> share they same style, they can be declared together as follows:

You can combine various ID selectors together as shown below: