:heading
An experimental pseudo-class that targets any heading element (h1, h2, h3, h4, h5, or h6) automatically.
This is an experimental technology. The syntax and behavior are still subject to change.
Syntax
/* Usage Example */
:heading {
/* Applies a consistent accent color to all headings */
color: var(--primary-accent);
font-family: ';Outfit', sans-serif;
}
:heading Browser support
Limited availability
Since
2020 Unknown global usage
This feature is not Baseline because it does not work in some of the most widely-used browsers.
preview+