Question:

What is grouping and what is it used for?

Answer:

  • Grouping allows you to apply the same style to multiple elements with a single declaration. This is done by grouping the selectors into a list, separated by commas.

e.g.)  h1, h2  { font-family: Helvetica; font-size: 20; }

  • Grouping helps memory usage and enhances readability.

Keywords:

© 2017 QuizBucket.org