HTML <link> charset attribute
HTML <link> tag
Example
In the following example, the charset attribute indicates that the linked
document is written in Japanese:
<head>
<link href="domoarigato.htm" rel="parent" charset="ISO-2022-JP" />
</head>
|
|
Definition and Usage
The charset attribute specifies the character encoding of the linked
document.
The default character-set for modern browsers is ISO-8859-1.
Browser Support
Note: The charset attribute is not supported by any of the major browsers.
Syntax
Attribute Values
Value |
Description |
character_set |
The character encoding of the linked document. Common values:
- UTF-8 - Character encoding for Unicode
- ISO-8859-1 - Character encoding for the Latin alphabet
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.
|
HTML <link> tag
|
|
|