Indicate what character set the style sheet written in with CSS

CSSWeb DevelopmentFront End Technology

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>
raja
Published on 27-Apr-2018 06:23:25
Advertisements