H — A–Z
Every CSS entry starting with H, grouped by kind. Pseudo-classes, pseudo-elements and types are filed by their first letter, ignoring the leading :, :: or <.
| Name | Description |
|---|---|
| Color | |
Highlight | System colour: the background of selected text. |
HighlightText | System colour: selected text. |
honeydew | Named colour #f0fff0. |
hotpink | Named colour #ff69b4. |
| Container feature | |
height | The height of the query container's content box. |
| Function | |
hsl() | An sRGB colour from hue, saturation and lightness. |
hsla() | Legacy alias of hsl() with the same arguments. |
hue-rotate() | A filter that rotates every hue by an angle. |
hwb() | An sRGB colour from a hue plus amounts of white and black. |
hypot() | The square root of the sum of squares of its arguments. |
| Media feature | |
height | The height of the viewport. |
horizontal-viewport-segments | How many side-by-side segments a dual-screen viewport has. |
hover | Whether the primary input device can hover. |
| Property | |
hanging-punctuation | Lets punctuation hang outside the line box. |
height | The preferred vertical size of a box. |
hyphenate-character | The string shown where a word is hyphenated. |
hyphenate-limit-chars | Minimum word length and characters either side of a hyphen. |
hyphens | Whether words may be hyphenated at line ends. |
| Pseudo-class | |
:has() | Matches an element by its descendants or following siblings: the parent selector. |
:has-slotted | Matches a slot element that has content assigned to it. |
:heading | Matches heading elements, h1 to h6. |
:host | Inside a shadow tree, matches its shadow host element. |
:host() | Matches the shadow host only if it also matches a given selector. |
:host-context() | Deprecated: matches a shadow host by its ancestors. Chrome only. |
:hover | Matches an element while the pointer is over it. |
| Pseudo-element | |
::highlight() | Styles text ranges registered with the CSS Custom Highlight API. |
| Type | |
<hex-color> | A colour written as # and 3, 4, 6 or 8 hexadecimal digits. |
<hue-interpolation-method> | Which way round the hue wheel to travel when blending. |
<hue> | The hue angle in a polar colour function. |