Basic and Advance CSS Examples and Concepts Question:
What Is a Group Selector in CSS?

Answer:
A group selector selects multiple HTML tags. Group selectors are specified with multiple tags separated with a comma like (tag, tag, tag). For example, the following CSS definition uses a group selector:
/* set background color to gray for all instances
of three tags: <UL>, <OL>, and <DL> */
UL, OL, DL {background-color: gray}
/* set background color to gray for all instances
of three tags: <UL>, <OL>, and <DL> */
UL, OL, DL {background-color: gray}
Previous Question | Next Question |
What Is a Contextual Selector in CSS? | What Is a Mixed Selector in CSS? |