CSS @charset Rule
A single @charset rule can be used in an external sheet to define character set encoding of the style rules and values.
The @charset rule must be written right at the beginning of the style sheet without even a space before it.
The value is held in quotes and should be one of the standard character-sets.
If you are writing your document using a character set other than ASCII or ISO8859-1 you might want to set the @charset rule at the top of your style sheet to indicate what character set the style sheet is written in.
Syntax -
Where charset Specifies the character encoding to use.
Now we will see example -
Example -
Example -
@charset "ISO-8859-1"
/* external style sheet rules follow below *
|