English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag Reference

HTML: <a> charset attribute

HTML <a> tag

Online Examples

The following examples use the charset attribute in links:

<a charset="UTF-8" href="https://www.oldtoolbag.com/">Visit the basic tutorial website!</a>/a>
Test it out ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All mainstream browsers do not support the charset attribute.

Definition and Usage

HTML5The charset attribute for <a> is not supported.
The charset attribute specifies the character set of the linked document (the document referenced in the href attribute).

Syntax

<a charset="value">

Attribute Value

ValueDescription
character_set

Character set of the linked document. Common character sets include:

  • UTF-8 - Unicode Character Encoding

  • ISO-8859-1 - Character Encoding of the Latin Alphabet

In theory, any character set can be used, but not all browsers can understand them. The more widely a character set is used, the more likely it is that browsers will understand it.

To view all available character sets, please visit our Character Set Reference Manual.

HTML <a> tag