:heading
Limited availability3% of usersExperimental
An experimental pseudo-class that targets any heading element (h1, h2, h3, h4, h5 or h6) automatically.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Chrome, Edge or Firefox yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick example
:heading {
/* Applies a consistent accent color to all headings */
color: var(--primary-accent);
font-family: 'Outfit', sans-serif;
}:heading browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage3%of people can use this97% use a browser without it.
Browsers
27+Mobile
27+iOS