Harvard Extension School
CSCI E-12 Fundamentals of Web Site Development | Spring 2020

## Combining Selectors

Selectors can be combined into comma-separated groups.

    h1 { color: maroon; }
    h2 { color: maroon; }
    h3 { color: maroon; }
    h4 { color: maroon; }
    h5 { color: maroon; }
    h6 { color: maroon; }

We combine the selectors so that a single declaration applies to multiple selectors.

    h1, h2, h3, h4, h5, h6 { color: maroon; }

Copyright © David Heitmeyer