Specifies the character encoding used in a style sheet.
@charset: charset
Parameter |
Description |
Valid Values |
charset |
Specifies the name of a web-safe character encoding defined in the IANA-registry. |
string denoting the character encoding to be used. |
The @charset property specifies the character encoding used in a style sheet.
@charset must be specified with the name of a web-safe character encoding defined in the IANA-registry, and must be double-quoted, preceded by one space character, and immediately terminated with a semicolon.
@charset "UTF-8";
@charset "iso-8859-15";
This property is useful when using non-ASCII characters in some CSS properties, and can only be placed at the very beginning of a stylesheet.
NOTE: This section is currently under major reconstruction. Please bear with whatever inconvenience you may encounter; we hope to complete the job at the soonest possible time.