HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML <link> charset Attribute

HTML link Tag Reference HTML <link> tag

Example

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

<link href="domoarigato.htm" rel="parent" charset="ISO-2022-JP">


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

Note: The charset attribute is not supported in any of the major browsers.


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.


Syntax

<link charset="character_set">

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 Reference HTML <link> tag

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE