YouTip LogoYouTip

Pr Charset Rule

### Example Set the character encoding used in the style sheet to UTF-8: ```css @charset "UTF-8"; ``` ### Browser Support The numbers in the table indicate the first browser version that fully supports this rule. | At-rule | Chrome | Edge | Firefox | Safari | Opera | | :--- | :--- | :--- | :--- | :--- | :--- | | **@charset** | 2.0 | 12.0 | 1.5 | 4.0 | 9.0 | --- ### Definition and Usage * The `@charset` rule specifies the character encoding used in the external style sheet (`.css` file). * It can only be used in CSS files (not in HTML style tags). * It **must** be the very first element in the stylesheet, and there must not be any character (including whitespace and byte-order marks) preceding it. * If multiple `@charset` rules are declared, only the first one will be used. * It cannot be used inside HTML elements or the `