:is()

noun

say it: “KOH-lun IZ” /ˈkoʊlən ɪz/

A functional pseudo-class that matches any selector in its list, so :is(header, footer) a means a link in the header or the footer. It scores as its most specific selector.

What does :is() do?

:is() matches any selector in its list, which shortens long selector lists.

:is(header, footer) a { color: white; }   /* links in the header or footer */

In a sentence

  • “I shortened three selectors to one with :is(): :is(header, main, footer) a.”

Level: Freelancer · More CSS terms at this level

Updated