Example
The charset attribute indicates that the linked document is written in Japanese:
<link href="domoarigato.htm" rel="parent" charset="ISO-2022-JP">
Definition and Usage
The <link> charset attribute is not supported in HTML5.
The charset attribute specifies the character encoding of the linked document.
The default character-set for modern browsers is ISO-8859-1.
Browser Support
Attribute | |||||
---|---|---|---|---|---|
charset | Not supported | Not supported | Not supported | Not supported | Not supported |
Syntax
<link charset="character_set">
Attribute Values
Value | Description |
---|---|
character_set | The character encoding of the linked document. Common values:
In theory, any character encoding can be used, but no browser understands all of them. The more widely a character encoding is used, the better the chance that a browser will understand it. To view all available character encodings, go to our Character sets reference. |