![]() |
VOOZH | about |
HTML <a> charset attribute specifies the character encoding for an external resource linked with the HTML anchor element. It ensures proper interpretation of text by defining the character set used in the linked resource.
Note: It is not supported by HTML5.
Syntax:
<a charset="value">Attribute Values:
It contains the value charset which specifies the character encoding for the external scripts.
charset attribute defines the character encoding for the webpage.<meta> tag, usually in the <head> section (e.g., <meta charset="UTF-8">).UTF-8 is the most common encoding, supporting a wide variety of characters and symbols.Example: This example display the use of charset attribute of anchor tag
Output:
Explanation:
.