--- title: CSS 文字セット slug: Web/CSS/CSS_Charsets tags: - CSS - CSS 文字セット - CSS 構文 - Reference - 概要 translation_of: Web/CSS/CSS_Charsets --- <div>{{CSSRef}}</div> <p><ruby><strong>CSS 文字セット</strong><rp> (</rp><rt>CSS Charsets</rt><rp>) </rp></ruby>は CSS のモジュールの一つで、スタイルシート内で使用される文字セットを指定します。</p> <h2 id="Reference" name="Reference">リファレンス</h2> <h3 id="At-rules" name="At-rules">@-規則</h3> <div class="index"> <ul> <li>{{cssxref("@charset")}}</li> </ul> </div> <h2 id="Specifications" name="Specifications">仕様書</h2> <table class="standard-table"> <thead> <tr> <th scope="col">仕様書</th> <th scope="col">状態</th> <th scope="col">備考</th> </tr> </thead> <tbody> <tr> <td>{{SpecName('CSS2.1', 'syndata.html#x57', '@charset')}}</td> <td>{{Spec2('CSS2.1')}}</td> <td>初回定義</td> </tr> </tbody> </table> <h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの対応</h2> <h3 id="charset_規則"><code>@charset</code> 規則</h3> <div> <div class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</div> <p>{{Compat("css.at-rules.charset")}}</p> </div>