Optimize CSS with the :is() Pseudo-Class Selector

When styling aspects of your website, it’s not unusual to need to target numerous similar items at once. Your code can get lengthy, repetitive and complex. Fortunately, the :is() pseudo-class selector introduced in the Selectors Level 4 specification can help simplify it. Using the :is() Selector Example 1 A common scenario where you can use…