From bc8b1c84cfaeee8b1747209ee2c79bea2c683aa1 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Mon, 23 Dec 2024 16:35:01 +0800 Subject: [PATCH] Update index.md --- files/en-us/web/css/@charset/index.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/files/en-us/web/css/@charset/index.md b/files/en-us/web/css/@charset/index.md index 8ea97eb15dea47a..8f982301b260633 100644 --- a/files/en-us/web/css/@charset/index.md +++ b/files/en-us/web/css/@charset/index.md @@ -26,12 +26,14 @@ As there are several ways to define the character encoding of a style sheet, the @charset "iso-8859-15"; ``` -- _charset_ - - : A {{cssxref("<string>")}} denoting the character encoding to be used. It must be the name of a web-safe character encoding defined in the [IANA-registry](https://www.iana.org/assignments/character-sets/character-sets.xhtml), and must be double-quoted, following exactly one space character (U+0020), and immediately terminated with a semicolon. If several names are associated with an encoding, only the one marked with _preferred_ must be used. +### Formal syntax -## Formal syntax +```plain +@charset ""; +``` -{{csssyntax}} +- _charset_ + - : A {{cssxref("<string>")}} denoting the character encoding to be used. It must be the name of a web-safe character encoding defined in the [IANA-registry](https://www.iana.org/assignments/character-sets/character-sets.xhtml), and must be double-quoted, following exactly one space character (U+0020), and immediately terminated with a semicolon. If several names are associated with an encoding, only the one marked with _preferred_ must be used. ## Examples