CSS @charset Rule


The @charset rule specifies the style sheet's character encoding. The @charset rule must be the first element in the style sheet, and if more than one @charset rule is defined, only the first one is used. It cannot be used in the <style> element where the HTML page's character set is important.

Syntax


Property Values

Value Description
charset This parameter specifies the character encoding to be used.

Supported Browsers

Element Chrome Firefox Safari Edge / IE Opera
@charset 2.0 1.5 4.0 12.0 9.0