--- title: <frequency> slug: Web/CSS/frequency translation_of: Web/CSS/frequency --- <p>{{ CSSRef() }}</p> <h2 id="Übersicht">Übersicht</h2> <p>Der <a href="/de/docs/Web/CSS" title="CSS">CSS</a> Datentyp <code><frequency></code> steht für eine Frequenz, wie sie bspw. bei Audio Inhalten gebraucht wird. Der Wert setzt sich susammen aus einer <span class="lang lang-en">{{cssxref("<number>")}}</span>, gefolgt von einer Einheit. Dazwischen darf kein Leerzeichen sein.</p> <p>Die folgenden Einheiten können gewählt werden:</p> <dl> <dt><code><a id="Hz">Hz</a></code></dt> <dd>Für eine Frequenz in Hertz.</dd> <dt><code><a id="kHz">kHz</a></code></dt> <dd>Für eine Frequenz in Kilohertz.</dd> </dl> <p>Alle Einheiten können auch den Wert <code>0</code> (<code>0kHz</code> oder <code>0Hz</code><code>) </code>annehmen, welcher unabhängig der Einheit immer dasselbe Ergebnis erzielt. Ein Wert ohne angabe einer Einheit (<code>0</code>) ist nicht zulässig.</p> <h2 class="editable" id="Beispiele"><span>Beispiele</span></h2> <p>Gültige Werte:</p> <pre>12Hz Positive integer. -456kHz Negative integer. 4.3Hz Non-integer. 14KhZ The unit is case-insensitive, though non-SI capitalization is not recommended. +0Hz Zero, with a leading + and the unit. -0kHz Zero, with a leading - and the unit (Though strange, this is an allowed value). </pre> <p>Ungültige Werte:</p> <pre>12.0 This is a <a href="/en-US/docs/Web/CSS/number" title="en/CSS/number"><number></a>, not an <frequency>, it must have a unit. 7 Hz No space is allowed between the <a href="/en-US/docs/Web/CSS/number" title="en/CSS/number"><number></a> and the unit. 0 Zero values can be written without a unit only if there are <a href="/en-US/docs/Web/CSS/length" title="en/CSS/length"><length></a> values, not <frequency>. </pre> <h2 id="Specifications" name="Specifications">Spezifikation</h2> <table class="standard-table"> <thead> <tr style="background-color: rgb(255, 204, 255);"> <th scope="col">Spezifikation</th> <th scope="col">Status</th> <th scope="col">Anmerkung</th> </tr> </thead> <tbody> <tr> <td>{{ SpecName('CSS3 Values', '#frequency', '<frequency>') }}</td> <td>{{ Spec2('CSS3 Values') }}</td> <td> </td> </tr> </tbody> </table> <h2 id="Browser_Kompatibilität">Browser Kompatibilität</h2> <p>{{ CompatibilityTable() }}</p> <div id="compat-desktop"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>{{CompatNo}}</td> <td>{{CompatNo}}</td> <td>{{CompatNo}}</td> <td>{{CompatNo}} [*]</td> <td>{{CompatNo}}</td> </tr> </tbody> </table> </div> <div id="compat-mobile"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td>{{CompatNo}}</td> <td>{{CompatNo}}</td> <td>{{CompatNo}}</td> <td>{{CompatNo}}</td> <td>{{CompatNo}}</td> </tr> </tbody> </table> </div> <p>[*] Einige Versionen von Opera unterstützten den Datentyp teilweise in einer veralteten Spezifikation.</p>