Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
/* Without :is() — repetitive */ h1 a, h2 a, h3 a, h4 a { color: inherit; } /* With :is() — cleaner */ :is(h1, h2, h3, h4) a { color: inherit; } /* :where() has zero specificity — easy to override */ :where(h1, h2, h3) { margin-top: 1.5em; } /* This simple class overrides the :where() above */ .no-margin { margin-top: 0; }
Result
Open