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>

Samual Sam
Samual Sam

Learning faster. Every day.

Updated on: 25-Jun-2020

81 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements