CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS @charset Rule

CSS @charset Rule

 

 

The @charset rule is used to specify the character encoding used in the style sheet. It must be the first element in the style sheet and not be preceded by any character. If several @charset rules are defined, only the first one is used. We cannot use it inside a style attribute (on an HTML element), or inside the style element where the character set of the HTML page is relevant.

 

Syntax:-

 

Its syntax is:- @charset "charset";

 

Further Explanation:-

 

Value Description
charset Specifies the character encoding to use

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS