Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 authored Dec 23, 2024
1 parent e5ee236 commit bc8b1c8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions files/en-us/web/css/@charset/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<charset>";
```

{{csssyntax}}
- _charset_
- : A {{cssxref("&lt;string&gt;")}} 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

Expand Down

0 comments on commit bc8b1c8

Please sign in to comment.