Latest

recent

HTML Link charset attribute

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

<link charset="value" />

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 charset attribute Reviewed by 1000sourcecodes on 02:29 Rating: 5
Powered by Blogger.