Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
HTML and CSS
CSS Reference
At-rules
 @charset Rule

  Switch on low bandwidth view
@charset Rule

Sets the character set for an external style sheet.

Syntax

HTML@charset sCharacterSet
ScriptingN/A

Possible Values

sCharacterSetString that specifies the HTML Character Sets.

Remarks

The rule has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft Internet Explorer 5. For more information, see About Dynamic Properties.

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.

Example

The following example implements the @charset rule.

@charset "Windows-1251";

Standards Information

This rule is defined in Cascading Style Sheets (CSS), Level 2 (CSS2) World Wide Web link.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker