CSS <frequency> Data Type

The CSS <frequency> data type denotes a frequency dimension for the pitch of sounds.

When you see <frequency> (including the < and >) anywhere in the CSS specifications, this refers to the fact that the value can be a valid frequency.

Frequency values are dimensions denoted by <frequency>. A dimension is a number immediately followed by a unit identifier, which is an identifier.

The unit identifiers for <frequency> are:

KiloHertz. A kiloHertz is 1000 Hertz.

Here are some valid <frequency> values:

A <frequency> Example

As an example, the voice-pitch property accepts the following value/s.

So you could write something like this:

These are both relative frequencies that specify a positive offset relative to the inherited absolute frequency.

Negative Frequencies

You can decrement a frequency from the inherited absolute frequency by prefixing the frequency with a hyphen.

So this example decrements the frequency by 10Hz from the inherited absolute frequency.

Absolute Frequency

You can specify an absolute frequency by using the absolute keyword.

Setting an absolute frequency means that it is not relative to the inherited absolute frequency. Therefore, if you specify 230Hz, that is the frequency that is used.

CSS Specifications