Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML charset property

HTML charset property

HTML a Tag Reference HTML tag

Example

The following example uses the charset property in a link:

Visit Runoob Tutorial!

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

No major browser supports the charset property.


Definition and Usage

HTML5 no longer supports the tag's charset property.

The tag's charset property is used to specify the character encoding used in the document that is the target of the link.


Syntax

Attribute values

Value Description
character_set

The 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 a browser is to understand it.

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

    |

    HTML a Tag Reference HTML tag