asp.net.ph

Skip Navigation LinksAbakada: Back to Basics > Language References > CSS Properties > At-Rules > @charset

@charset At-Rule


Specifies the character encoding used in a style sheet.

Syntax

@charset: charset

Possible Values

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.

Remarks

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.

See Also


Need a break ?
Suggested Reading

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

If you have any question, comment or suggestion,
please send us a note