Home > Abakada: Back to Basics > Language References > HTML Element Attributes > @charset Rule
Specifies the character set for an external stylesheet.
HTML |
@charset "sCharacterSet" |
Script |
N/A |
The rule has no default value.
At most, one @charset can be used in an external stylesheet, and it must appear at the top of the file, not preceded by any characters. The @charset rule cannot be in an embedded stylesheet.
The following sample demonstrates how the @charset rule is implemented.
@charset "Windows-1251";