English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML link charset Attribut

Das charset-Attribut legt die Zeichencodierung des verknüpften Dokuments fest. Der Standard-Zeichensatz moderner Browser ist ISO-8859-1.

 HTML <link> Tag

Online-Beispiel

Die charset-Attribut zeigt an, dass das verknüpfte Dokument auf Japanisch geschrieben ist:

<link href="domoarigato.htm" rel="parent" charset="ISO"}-2022-JP">

Browser Compatibility

IEFirefoxOperaChromeSafari

Note:All mainstream browsers do not support the charset attribute.

Definition and Usage

HTML5 The charset attribute of <link> is not supported.

The charset attribute specifies the character encoding of the linked document.

The default character set for modern browsers is ISO-8859-1.

Syntax

<link charset="character_set">

Attribute Value

ValueDescription
character_setCharacter encoding of the linked document.

Common character sets include:

  • UTF-8 - Unicode Character Encoding

  • ISO-8859-1 - Character Encoding of the Latin Alphabet

In theory, any character encoding can be used, but not all browsers can understand them. The more widely a character encoding is used, the more likely a browser is to understand it.

To view all available character encodings, please visit our Character Set Reference Manual.


 HTML <link> Tag