data-type

<frequency> — CSS reference

Frequency dimensions use Hz and kHz; they are compatible with each other, not time dimensions. A unit is required even for zero. Speech-related CSS is not a dependable browser feature. This example uses the guarded CSS Typed OM numerical conversion API; it does not produce audio or demonstrate speech styling.

Formal Syntax & Structure

css syntaxcss
0.44kHz /* frequency token */CSS.kHz(0.44).to("hz") /* JS Typed OM */

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>Numeric dimension lab</title><style>body {margin:0} .sample {height:12px;background:#006050}
</style><body><p id="output">Typed OM unavailable; no audio is played.</p><script>if(typeof CSS.kHz === "function"){document.querySelector("#output").textContent=CSS.kHz(0.44).to("hz").value+" Hz";}</script></body></html>
CSS Reference