Export (0) Print
Expand All
3 out of 6 rated this helpful - Rate this topic

@charset rule

Sets the character set for an external style sheet.

CSS 2.1, Section 4.4


@charset CharSet-Description



String that specifies the HTML Character Sets.

Standards information


Dynamic HTML (DHTML) expressions can be used in place of the preceding value(s). As of Windows Internet Explorer 8, expressions are not supported in IE8 Standards mode. For more information, see About Dynamic Properties.

The rule has no default value.

You can use only one @charset rule in an external style sheet. The rule must appear at the top of the file, cannot be preceded by any characters, and cannot be included in an embedded style sheet.


The following example implements the @charset rule.

@charset "Windows-1251";



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.