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

HTML Reference Manual

HTML Tag Encyclopedia

HTML link charset attribute

The charset attribute specifies the character encoding of the linked document, the default character set of modern browsers is ISO-8859-1.

 HTML <link> tag

Online Example

The charset attribute indicates that the linked document is written in Japanese:

<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 method 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 it is that browsers can understand it.

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


 HTML <link> tag