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>
Updated on: 2020-06-25T11:39:13+05:30

173 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements