Computer >> Computer tutorials >  >> Programming >> CSS

Indicate what character set the style sheet written in with CSS


To indicate what character set the style sheet written with CSS, use the @character rule. 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.

Example

Let us see an example,

<style>
   <!--
      @charset "iso-8859-1"
      .......other CSS rules .....
   -->
</style>