CSS <frequency> Data Type

Description

The <frequency> CSS data type allows for the specification of the pitch of sounds, expressed as a number followed (without whitespace) by one of the frequency units: Hz and kHz.

Syntax

property: <frequency>;

Values

  • HzFrequency in hertz, represents the number of cycles per second.
  • kHzFrequency in kilohertz, represents the number of thousands of cycles per second (in other words, 1kHz equals 1000Hz).

Example

Unfortunately, no CSS properties use the frequency data type yet. 

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
XXXXXX
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
XXXXXX

Last updated by CSSPortal on: 9th December 2019