@charset Rule

DHTML, HTML, & CSS

@charset Rule


Sets the character set for an external style sheet.

Syntax

HTML@charset sCharacterSet
ScriptingN/A

Possible Values

sCharacterSetString that specifies the character set.

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 dynamic propertiesInternet Link.

Remarks

At most, you can use one @charsetin an external style sheet, and it must appear at the top of the file, not preceded by any characters. The @charset rule cannot be in an embedded style sheet.

Example

This example implements the @charset rule.

@charset "Windows-1251";


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.