Latest web development tutorials

HTML <a> charset attribute

HTML a Tag Reference HTML <a> tag

Examples

The following example uses the charset attribute in the link:

<a charset="UTF-8" href="http://www.w3big.com/">访问本教程!</a>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers do not support the charset attribute.


Definition and Usage

HTML5 is no longer supported charset attribute <a> tag.

charset attribute <a> tag is used to specify the character encoding as the link destination document uses.


grammar

<a charset="value">

Property Value

value description
character_set

The character set of the document link. Commonly used character sets are:

  • UTF-8 - Unicode character encoding
  • ISO-8859-1 - Latin alphabet character encoding

In theory, you can use any character set, but not all browsers can understand them. One of the character set used in the wide range, the browser more likely to understand it.

To view all available character sets, please visit our character set reference manual .



HTML a Tag Reference HTML <a> tag