HTML a charset Attribute
HTML <a> tag
Example
Use of the charset attribute in a link:
<a charset="UTF-8" href="http://www.w3schools.com">Visit W3Schools.com!</a>
|
Try it yourself!
|
Definition and Usage
The charset attribute specifies the character encoding of the target URL.
The default character-set for modern browsers is ISO-8859-1.
Syntax
<a charset="character_set">
|
Syntax Example
Attribute Values
Value |
Description |
character_set |
The character encoding of the target URL. 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.
|
Browser Support
The major browsers do not use the charset attribute in any way.
HTML <a> tag
…
|