CSS <frequency> Data Type
The <frequency> data type is a rate per second, written as a number with the unit Hz or kHz. No CSS property uses it in browsers today.
Description
The <frequency> CSS data type represents a frequency: how many times something happens per second. It is written as a <number> immediately followed by the unit Hz (hertz) or kHz (kilohertz), for example 440Hz or 1.2kHz. One kilohertz equals 1000 hertz. Units are case-insensitive, so 10khz is also valid, though Hz and kHz are the conventional spellings.
The type was designed for aural (speech) style sheets, where properties such as voice-pitch and voice-range in the CSS Speech module describe how high or low a synthesized voice should sound. No property supported by current web browsers accepts a <frequency> value, so you will not use it in everyday styling. It is not related to animation speed: how often an animation repeats is controlled with <time> values such as animation-duration.
Like other dimensions, <frequency> values may appear in calc(), and a combined type, <frequency-percentage>, accepts either a frequency or a percentage.
Example syntax (not supported by browsers):
/* From the CSS Speech specification */
.narrator {
voice-pitch: 220Hz;
}
.announcer {
voice-pitch: 0.44kHz;
}
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
Browser Support
The following information will show you the current browser support for the CSS frequency data type. Hover over a browser icon to see the version that first introduced support for this CSS data type.
Desktop





Tablets & Mobile





