The frequency is a data type of CSS value. It represents the frequency dimension of sound like speaking frequency. This value is currently not used by any CSS properties. Back before it was used to measure the sound wave frequency. It holds a number with a unit(Hz or kHz).
frequancy: number Hz | kHz
Units: This CSS value accepts two types of units as mentioned above and described below:
- Hz: This unit represents a frequency in hertz(20Hz).
- kHz: This unit represents a frequency in kilohertz.
Note: There is a relation between this two units(1kHZ = 1000Hz).
Below example illustrate the CSS Value Frequency units:
Valid: 120Hz 14.44kHz or 14440 Hz 160Khz (It is case insensitive) +-0Hz Invalid: 180 (Unit is missing) 48 Hz (Space between the number and unit) 0 (Invalid, it can be unitless but not allowed)
Example: Below code will not work in any browsers, since this property is deprecated and not supported by any browsers anymore.
Supported Browsers: Currently this value is not supported by any browsers.