Home / Questions / Can several selectors with class names be grouped together?
Explanatory Question

Can several selectors with class names be grouped together?

👁 809 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

You can define several selectors with the same style definition by separating them with commas. This same technique also works for selectors with class names.