Favorites

CSS <frequency> Data Type

<frequency>
CSS Data TypeThis data type is not supported by modern browsers.
Updated 21st November 2026

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.

Looks like you're using an ad blocker, and that's fine! Ads help keep CSS Portal's generators and references free, so if the site's useful to you, visit our Support page to see other ways to help.

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

<div class="wrap">
<h1>CSS &lt;frequency&gt; examples</h1>
<div class="card">
<div class="voice low"><span>Low voice <code>220Hz</code></span><div class="bar"></div></div>
<div class="voice mid"><span>Concert A <code>440Hz</code></span><div class="bar"></div></div>
<div class="voice high"><span>High voice <code>0.88kHz</code></span><div class="bar"></div></div>
</div>
<p class="note">&lt;frequency&gt; is not supported by any browser property.</p>
</div>
/* Base demo layout */
* { box-sizing: border-box; }

body {
  margin: 24px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: #f5f7fb;
  color: #102a43;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
}

h1 {
  font-size: 20px;
  margin: 0 0 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(16, 42, 67, 0.08);
}

.label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 12px;
  color: #486581;
  margin-top: 10px;
  word-break: break-word;
}

.note {
  font-size: 13px;
  color: #486581;
  margin-top: 14px;
}

/*  examples */
/* No browser property accepts , so this demo only
   displays example values. The bars are drawn with ordinary widths. */
.voice {
  margin-bottom: 14px;
}

.voice span {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}

.voice code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  color: #7c3aed;
}

.bar {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
}

.low .bar { width: 22%; }
.mid .bar { width: 44%; }
.high .bar { width: 88%; }
Open in editor

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.

This data type is not supported by modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported

Looks like you're using an ad blocker, and that's fine! Ads help keep CSS Portal's generators and references free, so if the site's useful to you, visit our Support page to see other ways to help.