Click to return to the DHTML, HTML     
!important Declaration     @font-face Rule     DHTML Properties    
Web Workshop  |  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 Properties.

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!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.