The `:heading` pseudo-selector allows targeting all heading elements (h1-h6) with a single CSS rule instead of listing them individually. It has class-level specificity (0-1-0) and supports functional notation like `:heading(1, 2)` for grouping levels. Currently available only in Firefox Nightly and Safari Technology Preview,
Table of contents
The Current ApproachEnter :headingTargeting Specific Heading LevelsSome Possible Use CasesComposing :heading With Other SelectorsBrowser Support and TestingA Cleaner Design SystemWrapping UpSort: