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 <.

NameDescription
Color
HighlightSystem colour: the background of selected text.
HighlightTextSystem colour: selected text.
honeydewNamed colour #f0fff0.
hotpinkNamed colour #ff69b4.
Container feature
heightThe 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
heightThe height of the viewport.
horizontal-viewport-segmentsHow many side-by-side segments a dual-screen viewport has.
hoverWhether the primary input device can hover.
Property
hanging-punctuationLets punctuation hang outside the line box.
heightThe preferred vertical size of a box.
hyphenate-characterThe string shown where a word is hyphenated.
hyphenate-limit-charsMinimum word length and characters either side of a hyphen.
hyphensWhether words may be hyphenated at line ends.
Pseudo-class
:has()Matches an element by its descendants or following siblings: the parent selector.
:has-slottedMatches a slot element that has content assigned to it.
:headingMatches heading elements, h1 to h6.
:hostInside 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.
:hoverMatches 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.