What Is a Group Selector

Q

What Is a Group Selector? - CSS Tutorials - Introduction To CSS Basics

✍: FYIcenter.com

A

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}

2007-05-11, 4753👍, 0💬