HTML link charset attribute
Examples
charset attribute indicates the linked document is written in Japanese:
<link href="domoarigato.htm" rel="parent" charset="ISO-2022-JP">
Browser Support
Note: All major browsers do not support the charset attribute.
Definition and Usage
HTML5 does not support the <link> charset attribute.
charset attribute specifies the character encoding of the linked document.
Modern browser's default character set is ISO-8859-1.
grammar
<link charset="character_set">
Property Value
值 | 描述 |
---|---|
character_set | 所链接文档的字符编码。 常用的字符集有:
在理论上,可以使用任何字符编码,但并不是所有浏览器都能够理解它们。某种字符编码使用的范围越广,浏览器就越有可能理解它。 如需查看所有可用的字符编码,请访问我们的 字符集参考手册 。 |
HTML <link> tag